Ignore:
Timestamp:
02/21/06 17:42:39 (19 years ago)
Author:
mattausch
Message:

adding function for testing purpose

File:
1 edited

Legend:

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

    r658 r660  
    9999                        Mesh *mesh = new Mesh(); 
    100100 
     101                        VertexIndexContainer vc; 
     102 
    101103                        // add vertices 
    102104                        for (int i = 0; i < (int)(*it).size(); ++ i) 
    103105                        { 
    104106                                mesh->mVertices.push_back(mCurrentVertices[(*it)[i]]); 
    105                                  
     107                                vc.push_back(i); 
    106108                        } 
    107109                         
    108                         mesh->mFaces.push_back(new Face(0,1,2)); 
     110                        mesh->mFaces.push_back(new Face(vc)); 
    109111                        mesh->Preprocess(); 
    110112                        // make an instance of this mesh 
Note: See TracChangeset for help on using the changeset viewer.