Ignore:
Timestamp:
03/13/06 16:29:28 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r660 r693  
    8787} 
    8888 
     89// HACK 
     90void RotateMesh(Mesh *mesh) 
     91{ 
     92        VertexContainer::const_iterator it, it_end = mesh->mVertices.end(); 
     93 
     94        const float angle = 30.0f * PI / 180.0f; 
     95        const Matrix4x4 rot = RotationYMatrix(30); 
     96 
     97        for (it = mesh->mVertices.begin(); it != it_end; ++ it) 
     98        { 
     99                const Vector3 pt = rot * (*it); 
     100        } 
     101} 
     102 
     103 
    89104void 
    90105X3dParseHandlers::EndShape() 
     
    109124                         
    110125                        mesh->mFaces.push_back(new Face(vc)); 
     126                        if (0) 
     127                                RotateMesh(mesh); 
    111128                        mesh->Preprocess(); 
    112129                        // make an instance of this mesh 
     
    121138        } 
    122139        else 
    123         { 
    124   
     140        {  
    125141                if (mCurrentMesh->mFaces.size())  
    126142                { 
     143                        // HACK 
     144                        if (0) 
     145                                RotateMesh(mCurrentMesh); 
    127146                        mCurrentMesh->Preprocess(); 
    128147                        // make an instance of this mesh 
Note: See TracChangeset for help on using the changeset viewer.