Changeset 693 for GTP/trunk/Lib/Vis/Preprocessing/src/X3dParser.cpp
- Timestamp:
- 03/13/06 16:29:28 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/X3dParser.cpp
r660 r693 87 87 } 88 88 89 // HACK 90 void 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 89 104 void 90 105 X3dParseHandlers::EndShape() … … 109 124 110 125 mesh->mFaces.push_back(new Face(vc)); 126 if (0) 127 RotateMesh(mesh); 111 128 mesh->Preprocess(); 112 129 // make an instance of this mesh … … 121 138 } 122 139 else 123 { 124 140 { 125 141 if (mCurrentMesh->mFaces.size()) 126 142 { 143 // HACK 144 if (0) 145 RotateMesh(mCurrentMesh); 127 146 mCurrentMesh->Preprocess(); 128 147 // make an instance of this mesh
Note: See TracChangeset
for help on using the changeset viewer.