Changeset 1168 for GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.cpp
- Timestamp:
- 07/28/06 09:37:05 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.cpp
r1166 r1168 610 610 // update scalar pvs size value 611 611 ObjectPvs &pvs = viewCell->GetPvs(); 612 mViewCellsManager->UpdateScalarPvsSize(viewCell, pvs.Count Pvs(), pvs.GetSize());612 mViewCellsManager->UpdateScalarPvsSize(viewCell, pvs.CountObjectsInPvs(), pvs.GetSize()); 613 613 614 614 mVspStats.contributingSamples += conSamp; … … 725 725 // update scalar pvs size value 726 726 ObjectPvs &pvs = viewCell->GetPvs(); 727 mViewCellsManager->UpdateScalarPvsSize(viewCell, pvs.Count Pvs(), pvs.GetSize());727 mViewCellsManager->UpdateScalarPvsSize(viewCell, pvs.CountObjectsInPvs(), pvs.GetSize()); 728 728 729 729 mVspStats.contributingSamples += conSamp; … … 1797 1797 if (leaf->TreeValid() && 1798 1798 (!onlyUnmailed || !leaf->Mailed()) && 1799 ((maxPvsSize < 0) || (leaf->GetViewCell()->GetPvs().Count Pvs() <= maxPvsSize)))1799 ((maxPvsSize < 0) || (leaf->GetViewCell()->GetPvs().CountObjectsInPvs() <= maxPvsSize))) 1800 1800 { 1801 1801 leaves.push_back(leaf); … … 1874 1874 << "PVS: " << data.mPvs << " (min: " << mTermMinPvs << "), " 1875 1875 << "#rays: " << (int)data.mRays->size() << " (max: " << mTermMinRays << "), " 1876 << "#pvs: " << leaf->GetViewCell()->GetPvs().Count Pvs() << "), "1876 << "#pvs: " << leaf->GetViewCell()->GetPvs().CountObjectsInPvs() << "), " 1877 1877 << "#avg ray contrib (pvs): " << (float)data.mPvs / (float)data.mRays->size() << endl; 1878 1878 #endif … … 4496 4496 mTotalCost -= splitCandidate->GetRenderCostDecrease(); 4497 4497 4498 //-- subdivide leaf node4499 SubdivideSplitCandidate(splitCandidate);4500 4501 4498 // cost ratio of cost decrease / totalCost 4502 4499 const float costRatio = splitCandidate->GetRenderCostDecrease() / mTotalCost; … … 4506 4503 << splitCandidate->GetRenderCostDecrease() 4507 4504 << " cost ratio: " << costRatio << endl << endl; 4505 4506 //-- subdivide leaf node 4507 SubdivideSplitCandidate(splitCandidate); 4508 4508 4509 4509 if (costRatio < mTermMinGlobalCostRatio)
Note: See TracChangeset
for help on using the changeset viewer.