Changeset 1142 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 07/19/06 00:26:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1141 r1142 100 100 Environment::GetSingleton()->GetBoolValue("ViewCells.exportBboxesForPvs", mExportBboxesForPvs); 101 101 Environment::GetSingleton()->GetBoolValue("ViewCells.exportPvs", mExportPvs); 102 Environment::GetSingleton()->GetBoolValue("ViewCells.Evaluation.countKdPvs", mCountKdPvs);102 103 103 104 104 char buf[100]; … … 214 214 Debug << "export bounding boxes: " << mExportBboxesForPvs << endl; 215 215 Debug << "export pvs for view cells: " << mExportPvs << endl; 216 Debug << "count kd pvs: " << mCountKdPvs << endl;216 217 217 218 218 Debug << endl; … … 788 788 sort(viewCells.begin(), viewCells.end(), ViewCell::SmallerPvs); 789 789 790 maxPvs = mViewCellsTree->GetPvsSize(viewCells.back() , mCountKdPvs);790 maxPvs = mViewCellsTree->GetPvsSize(viewCells.back()); 791 791 minVal = 0; 792 792 … … 832 832 833 833 while ((i < (int)viewCells.size()) && 834 (mViewCellsTree->GetPvsSize(viewCells[i] , mCountKdPvs) < currentPvs))834 (mViewCellsTree->GetPvsSize(viewCells[i]) < currentPvs)) 835 835 { 836 836 volDif += viewCells[i]->GetVolume(); … … 843 843 844 844 if (0 && (i < (int)viewCells.size())) 845 Debug << "new pvs size increase: " << mViewCellsTree->GetPvsSize(viewCells[i] , mCountKdPvs)845 Debug << "new pvs size increase: " << mViewCellsTree->GetPvsSize(viewCells[i]) 846 846 << " " << currentPvs << endl; 847 847 … … 1706 1706 ViewCell *viewcell = *it; 1707 1707 1708 const int pvsSize = mViewCellsTree->GetPvsSize(viewcell , mCountKdPvs);1708 const int pvsSize = mViewCellsTree->GetPvsSize(viewcell); 1709 1709 1710 1710 if (pvsSize < stat.minPvs) … … 1957 1957 float ViewCellsManager::GetRendercost(ViewCell *viewCell) const 1958 1958 { 1959 return mViewCellsTree->GetPvsSize(viewCell , mCountKdPvs);1959 return mViewCellsTree->GetPvsSize(viewCell); 1960 1960 } 1961 1961 … … 2409 2409 { 2410 2410 importance = 2411 (float)mViewCellsTree->GetPvsSize(vc , mCountKdPvs) /2411 (float)mViewCellsTree->GetPvsSize(vc) / 2412 2412 (float)mCurrentViewCellsStats.maxPvs; 2413 2413 } … … 4390 4390 Exporter *exporter = Exporter::GetExporter(s); 4391 4391 4392 Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc , mCountKdPvs) << endl;4392 Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc) << endl; 4393 4393 4394 4394 //-- export the sample rays … … 4904 4904 long startTime; 4905 4905 4906 mHierarchyManager->Construct2(constructionRays, objects, &mViewSpaceBox);4907 4906 //mHierarchyManager->Construct(constructionRays, objects, &mViewSpaceBox); 4908 4907 //mHierarchyManager->Construct2(constructionRays, objects, &mViewSpaceBox); 4908 mHierarchyManager->Construct3(constructionRays, objects, &mViewSpaceBox); 4909 4909 4910 //-- stats 4910 4911 Debug << mVspTree->GetStatistics() << endl; … … 5301 5302 } 5302 5303 5303 if (1 )5304 if (1 && mOspTree->GetRoot()) 5304 5305 { 5305 5306 //-- export final object partition … … 5383 5384 Exporter *exporter = Exporter::GetExporter(s); 5384 5385 5385 Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc , mCountKdPvs) << endl;5386 Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc) << endl; 5386 5387 5387 5388 //-- export the sample rays
Note: See TracChangeset
for help on using the changeset viewer.