Changeset 1580 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
- Timestamp:
- 10/06/06 21:37:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r1577 r1580 829 829 830 830 AxisAlignedPlane candidatePlane = splitCandidate.mSplitPlane; 831 RayInfoContainer::const_iterator rit, 832 rit_end = splitCandidate.mParentData.mRays->end(); 833 834 // this is the main ray classification loop! 831 832 Intersectable::NewMail(3); 833 KdLeaf::NewMail(3); 834 BvhLeaf::NewMail(3); 835 836 RayInfoContainer::const_iterator rit, rit_end = splitCandidate.mParentData.mRays->end(); 837 838 // this is the main ray classification loop! 835 839 for(rit = splitCandidate.mParentData.mRays->begin(); rit != rit_end; ++ rit) 836 840 { … … 849 853 #endif 850 854 } 851 855 //cout << "pvs entries: " << fPvsSize << " " << bPvsSize << " " << oldPvsSize << endl; 856 852 857 return (int)(fPvsSize + bPvsSize - oldPvsSize); 853 858 } … … 1495 1500 candidatePlane.mPosition, t); 1496 1501 1497 // evaluate contribution of ray endpoint to front and back pvs1498 // with respect to the classification1502 // evaluate contribution of ray endpoint to front 1503 // and back pvs with respect to the classification 1499 1504 UpdateContributionsToPvs(*ray, true, cf, pvsFront, pvsBack, totalPvs); 1500 1505 #if COUNT_ORIGIN_OBJECTS … … 1657 1662 if (!leaf) return; 1658 1663 const int renderCost = countEntries ? 1 : (int)leaf->mObjects.size(); 1659 1664 1660 1665 // leaf in no pvs => new 1661 1666 if (!leaf->Mailed() && !leaf->Mailed(1) && !leaf->Mailed(2)) … … 3124 3129 { 3125 3130 BvhLeaf *leaf = mHierarchyManager->mBvHierarchy->GetLeaf(obj); 3126 UpdateContributionsToPvs(leaf, cf, pvsFront, pvsBack, totalPvs, true); 3131 UpdateContributionsToPvs(leaf, cf, pvsFront, pvsBack, totalPvs, true); 3127 3132 break; 3128 3133 }
Note: See TracChangeset
for help on using the changeset viewer.