Changeset 1697 for GTP/trunk/Lib/Vis
- Timestamp:
- 10/29/06 19:15:22 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1696 r1697 963 963 if (success) 964 964 { 965 //sc->CollectDirtyCandidates(dirtyCandidates, true);965 sc->CollectDirtyCandidates(dirtyCandidates, true); 966 966 ++ steps; 967 967 } -
GTP/trunk/Lib/Vis/Preprocessing/src/Intersectable.h
r1696 r1697 77 77 Intersectable(): mMailbox(0), mReferences(0), mBvhLeaf(0), mVssRays(NULL) {} 78 78 79 virtual Intersectable::~Intersectable() { };79 virtual Intersectable::~Intersectable() {DEL_PTR(mVssRays);}; 80 80 81 81 void SetId(const int id) { mId = id; } -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1696 r1697 500 500 cout<<"#NUM_OBJECTS (Total numner of objects)\n"<<intersectables<<endl; 501 501 cout<<"#NUM_FACES (Total numner of faces)\n"<<faces<<endl; 502 mObjects.reserve(intersectables); 502 503 mSceneGraph->CollectObjects(&mObjects); 503 504 mSceneGraph->GetRoot()->UpdateBox(); 504 505 cout << "finished loading" << endl; 505 506 if (0) 506 507 { -
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r1696 r1697 202 202 } 203 203 204 if (1) {205 // export obj file206 Exporter *exporter = new ObjExporter("scene.obj");207 exporter->ExportScene(preprocessor->mSceneGraph->GetRoot());208 delete exporter;209 }210 211 212 204 const string externKdTree = ReplaceSuffix(filename, ".obj", ".kdf"); 213 205 const string internKdTree = GetInternFilename(filename, preprocessor->mLoadMeshes ? ".kdm" : ".kdt"); 214 206 215 //-- initialize external ray casters 207 //////////// 208 //-- initialize external ray caster 216 209 217 210 if (preprocessor->InitRayCast(externKdTree, internKdTree))
Note: See TracChangeset
for help on using the changeset viewer.