Changeset 1279 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 08/24/06 18:05:53 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1272 r1279 17 17 #include "ObjParser.h" 18 18 #include "BvHierarchy.h" 19 #include "HierarchyManager.h" 19 20 20 21 #ifdef GTP_INTERNAL … … 125 126 mVspBspTree(NULL), 126 127 mVspTree(NULL), 127 mOspTree(NULL), 128 mBvHierarchy(NULL), 128 mHierarchyManager(NULL), 129 129 mViewCellsManager(NULL), 130 130 mRenderSimulator(NULL), 131 mPass(0) 131 mPass(0), 132 mRayCastMethod(0) 132 133 { 133 134 Environment::GetSingleton()->GetBoolValue("Preprocessor.useGlRenderer", mUseGlRenderer); … … 142 143 Environment::GetSingleton()->GetBoolValue("Preprocessor.detectEmptyViewSpace", mDetectEmptyViewSpace); 143 144 Environment::GetSingleton()->GetBoolValue("Preprocessor.exportVisibility", mExportVisibility ); 145 //#if GTP_INTERNAL // choose other ray cast method 144 146 Environment::GetSingleton()->GetIntValue("Preprocessor.rayCastMethod", mRayCastMethod); 145 147 //#endif 146 148 char buffer[256]; 147 149 Environment::GetSingleton()->GetStringValue("Preprocessor.visibilityFile", buffer); … … 177 179 cout << "done.\n"; 178 180 179 cout << "Deleting osp tree...\n";180 DEL_PTR(m OspTree);181 cout << "Deleting hierarchy manager...\n"; 182 DEL_PTR(mHierarchyManager); 181 183 cout << "done.\n"; 182 184 … … 479 481 { 480 482 mVspTree = new VspTree(); 481 //mOspTree = new OspTree(); 482 483 483 484 // HACK for testing if per kd evaluation works!! 484 mOspTree = new OspTree(*mKdTree); 485 486 mViewCellsManager = new VspOspViewCellsManager(vcTree, mVspTree, mOspTree); 485 const bool ishack = true; 486 487 if (ishack) 488 { 489 mHierarchyManager = new HierarchyManager(mVspTree, mKdTree); 490 } 491 else 492 { 493 mHierarchyManager = new HierarchyManager(mVspTree, HierarchyManager::KD_BASED_OBJ_SUBDIV); 494 } 495 496 mViewCellsManager = new VspOspViewCellsManager(vcTree, mHierarchyManager); 487 497 } 488 498 else if (strcmp(name, "sceneDependent") == 0) … … 500 510 } 501 511 502 //vcTree->SetViewCellsManager(mViewCellsManager);503 512 return mViewCellsManager; 504 513 } … … 767 776 // return new ObjectsInteriorDistribution(*this); 768 777 default: // no valid strategy 778 Debug << "warning: no valid sampling strategy" << endl; 769 779 return NULL; 770 780 } … … 844 854 //Debug << "intel ray: " << *vssRay << endl; 845 855 } 856 846 857 //cout << "a"; 847 858 return hits;
Note: See TracChangeset
for help on using the changeset viewer.