Ignore:
Timestamp:
05/02/08 17:49:52 (16 years ago)
Author:
mattausch
Message:

added obj version of full city

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ObjParser.cpp

    r2600 r2672  
    259259                                        break; 
    260260                                default: 
    261                                         float x, y, z; //cout << "v";    
     261                                         
     262                                        float x, y, z; 
    262263                                        sscanf(str + 1, "%f %f %f", &x, &y, &z); 
    263264                                        vertices.push_back(Vector3(x,y,z)); 
    264  
     265                                        //cout <<"v " << x << " " << y << " "<< z << " "; 
    265266                                } 
    266267                                break; 
     
    286287 
    287288                                        ////////// 
    288                                         // construct the triangles given in the current line 
     289                                        // construct triangles from indices in the current line 
    289290 
    290291                                        vector<Triangle3> triangles; 
     
    295296                                        for (tit = triangles.begin(); tit != tit_end; ++ tit) 
    296297                                        { 
    297                                           // test if it is a valid triangle 
     298                                          // test if the triangle is valid (i.e., not degenerated) 
    298299                                          if (!TriangleValid(*tit)) 
    299                                             continue; 
     300                                                  continue; 
    300301 
    301302                                          TriangleIntersectable *obj = new TriangleIntersectable(*tit);  
Note: See TracChangeset for help on using the changeset viewer.