Changeset 1005 for GTP/trunk/Lib/Vis
- Timestamp:
- 06/08/06 01:48:22 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.cpp
r1004 r1005 645 645 646 646 647 Mesh::~Mesh() 648 { 649 for (int i=0; i < mFaces.size(); ++ i) 650 delete mFaces[i]; 651 652 DEL_PTR(mKdTree); 653 } 654 655 656 void Mesh::Clear() 657 { 658 mVertices.clear(); 659 mFaces.clear(); 660 661 DEL_PTR(mKdTree); 662 } 647 663 648 664 /********************************************************/ -
GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.h
r1004 r1005 104 104 Mesh& operator=(const Mesh& m); 105 105 106 ~Mesh() { 107 for (int i=0; i < mFaces.size(); i++) 108 delete mFaces[i]; 109 } 110 111 112 void Clear() { 113 mVertices.clear(); 114 mFaces.clear(); 115 } 106 ~Mesh(); 107 void Clear(); 116 108 117 109 void IndexVertices(); -
GTP/trunk/Lib/Vis/Preprocessing/src/X3dParser.cpp
r1004 r1005 166 166 float angle; 167 167 168 if (sscanf(ptr, "%f %f %f %f", &axis.x, &axis.y, &axis.z, &angle) == 4)168 if (sscanf(ptr, "%f %f %f", &axis.x, &axis.y, &axis.z, &angle) == 4) 169 169 { 170 170 rotm = new Matrix4x4(RotationAxisMatrix(axis, angle)); … … 274 274 { 275 275 MeshInstance *mi; 276 277 if (mCurrentMesh->mFaces.empty()) 278 cout << "warning: empy mesh" << endl; 276 279 277 280 if (!mUsingMeshDefinition) … … 549 552 550 553 // todo 551 if ( 0 &&element == "Material") {554 if (element == "Material") { 552 555 StartMaterial(attributes); 553 556 } -
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r1004 r1005 161 161 162 162 if (app) 163 { 163 164 returnCode = app->exec(); 165 DEL_PTR(app); 166 } 164 167 165 168 //-- clean up 166 169 DEL_PTR(p); 167 170 Environment::DelSingleton(); 171 DEL_PTR(rendererWidget); 168 172 169 173 MeshManager::DelSingleton();
Note: See TracChangeset
for help on using the changeset viewer.