- Timestamp:
- 02/02/06 10:03:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.cpp
r580 r581 53 53 54 54 environment->GetIntValue("ViewCells.Construction.samplesPerPass", mSamplesPerPass); 55 56 55 environment->GetBoolValue("ViewCells.exportToFile", mExportViewCells); 57 58 56 environment->GetBoolValue("ViewCells.PostProcess.useRaysForMerge", mUseRaysForMerge); 57 58 environment->GetIntValue("ViewCells.active", mNumActiveViewCells); 59 59 60 60 mMinPvsSize = emptyViewCells ? 1 : 0; … … 234 234 235 235 return true; 236 } 237 238 239 bool ViewCellsManager::ViewCellsTreeConstructed() const 240 { 241 return mViewCellsTree->GetRoot(); 236 242 } 237 243 … … 684 690 } 685 691 692 686 693 int ViewCellsManager::GetMinPvsSize() const 687 694 { … … 2066 2073 void VspBspViewCellsManager::CollectViewCells() 2067 2074 { 2068 mVspBspTree->CollectViewCells(mViewCells, true); 2075 // view cells tree constructed 2076 if (!ViewCellsTreeConstructed()) 2077 { 2078 mVspBspTree->CollectViewCells(mViewCells, true); 2079 } 2080 else 2081 { 2082 // we can use the view cells tree hierarchy to get the right set 2083 mViewCellsTree->CollectBestViewCellSet(mViewCells, mNumActiveViewCells); 2084 } 2085 2069 2086 } 2070 2087
Note: See TracChangeset
for help on using the changeset viewer.