Changeset 1233 for GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
- Timestamp:
- 08/20/06 22:48:01 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
r1221 r1233 1 #include 1 #include <stdlib.h> 2 2 #include <iostream> 3 3 #include <list> … … 155 155 char str[100]; 156 156 157 float x,y,z;158 int i;159 160 157 SceneGraphNode *root = new SceneGraphNode; 161 158 … … 168 165 { 169 166 case 'v': 170 cout << "v"; 171 172 // vertex 173 sscanf(str + 1, "%f %f %f", &x, &y, &z); 174 vertices.push_back(Vector3(x,y,z)); 175 176 //Debug << "vertex: " << vertices.back() << endl; 177 break; 178 167 { 168 float x,y,z; 169 cout << "v"; 170 171 // vertex 172 sscanf(str + 1, "%f %f %f", &x, &y, &z); 173 vertices.push_back(Vector3(x,y,z)); 174 //Debug << "vertex: " << vertices.back() << endl; 175 break; 176 } 179 177 case 'f': 180 178 {
Note: See TracChangeset
for help on using the changeset viewer.