Changeset 1876 for GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
- Timestamp:
- 12/08/06 23:46:17 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
r1695 r1876 197 197 while (fgets(str, 80, file) != NULL) 198 198 { 199 199 switch (str[0]) 200 200 { 201 case 'v': // vertex 202 { 203 float x, y, z; //cout << "v"; 204 sscanf(str + 1, "%f %f %f", &x, &y, &z); 205 vertices.push_back(Vector3(x,y,z)); 206 //cout << "vertex: " << vertices.back() << endl; 207 break; 201 case 'v': // vertex or normal 202 { 203 switch (str[1]) { 204 case 'n' : 205 // normal do nothing 206 break; 207 default: 208 float x, y, z; //cout << "v"; 209 sscanf(str + 1, "%f %f %f", &x, &y, &z); 210 vertices.push_back(Vector3(x,y,z)); 211 //cout << "vertex: " << vertices.back() << endl; 208 212 } 213 break; 214 } 209 215 case 'f': 210 216 {
Note: See TracChangeset
for help on using the changeset viewer.