Changeset 2119 for GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
- Timestamp:
- 02/15/07 14:45:30 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
r2042 r2119 236 236 237 237 while (fgets(str, 1000, file) != NULL) 238 {++ line; 238 { 239 ++ line; 239 240 switch (str[0]) 240 241 { 241 242 case 'v': // vertex or normal 242 243 { 243 switch (str[1]) { 244 switch (str[1]) 245 { 244 246 case 'n' : 245 246 247 // normal do nothing 248 break; 247 249 default: 248 249 250 251 //cout << "vertex: " << vertices.back() << endl;250 float x, y, z; //cout << "v"; 251 sscanf(str + 1, "%f %f %f", &x, &y, &z); 252 vertices.push_back(Vector3(x,y,z)); 253 252 254 } 253 255 break; … … 258 260 { 259 261 Face *face = LoadFace(str, vertices, hashTable); 262 260 263 if (!face) break; 261 264
Note: See TracChangeset
for help on using the changeset viewer.