Changeset 2672 for GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
- Timestamp:
- 05/02/08 17:49:52 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp
r2600 r2672 259 259 break; 260 260 default: 261 float x, y, z; //cout << "v"; 261 262 float x, y, z; 262 263 sscanf(str + 1, "%f %f %f", &x, &y, &z); 263 264 vertices.push_back(Vector3(x,y,z)); 264 265 //cout <<"v " << x << " " << y << " "<< z << " "; 265 266 } 266 267 break; … … 286 287 287 288 ////////// 288 // construct t he triangles givenin the current line289 // construct triangles from indices in the current line 289 290 290 291 vector<Triangle3> triangles; … … 295 296 for (tit = triangles.begin(); tit != tit_end; ++ tit) 296 297 { 297 // test if it is a valid triangle298 // test if the triangle is valid (i.e., not degenerated) 298 299 if (!TriangleValid(*tit)) 299 300 continue; 300 301 301 302 TriangleIntersectable *obj = new TriangleIntersectable(*tit);
Note: See TracChangeset
for help on using the changeset viewer.