Changeset 2672 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 05/02/08 17:49:52 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 2 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); -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp
r2663 r2672 499 499 else 500 500 { 501 const int n = 1000; 501 502 // parse view space hierarchy 502 503 switch (mCurrentState) 503 504 { 504 505 case PARSE_VIEWSPACE_HIERARCHY: 505 if ((++ nViewCells % 1000) == 0)506 if ((++ nViewCells % n) == 0) 506 507 { 507 508 cout << "\r" << nViewCells << " view cells parsed\r"; … … 511 512 break; 512 513 case PARSE_OBJECTSPACE_HIERARCHY: 513 if ((++ nObjects % 10000) == 0)514 if ((++ nObjects % n) == 0) 514 515 cout <<"\r" << nObjects << " objects parsed\r"; 515 516
Note: See TracChangeset
for help on using the changeset viewer.