- Timestamp:
- 12/17/06 04:10:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r1903 r1905 1551 1551 Intersectable::NewMail(3); 1552 1552 KdLeaf::NewMail(3); 1553 BvhLeaf::NewMail(3);1553 //BvhLeaf::NewMail(3); 1554 1554 1555 1555 RayInfoContainer::const_iterator rit, rit_end = data.mRays->end(); … … 1583 1583 // probability that view point lies in back / front node 1584 1584 float pOverall = data.mProbability; 1585 float pFront = pFront =frontBox.GetVolume();1585 float pFront = frontBox.GetVolume(); 1586 1586 float pBack = pOverall - pFront; 1587 1587 … … 1590 1590 //-- evaluate render cost heuristics 1591 1591 1592 const float lowerPvsLimit = (float)mViewCellsManager->GetMinPvsSize(); 1593 const float upperPvsLimit = (float)mViewCellsManager->GetMaxPvsSize(); 1594 1595 const float penaltyOld = EvalPvsPenalty(totalPvs, lowerPvsLimit, upperPvsLimit); 1596 const float penaltyFront = EvalPvsPenalty(pvsFront, lowerPvsLimit, upperPvsLimit); 1597 const float penaltyBack = EvalPvsPenalty(pvsBack, lowerPvsLimit, upperPvsLimit); 1592 const float penaltyOld = totalPvs; 1593 const float penaltyFront = pvsFront; 1594 const float penaltyBack = pvsBack; 1598 1595 1599 1596 const float oldRenderCost = pOverall * penaltyOld; … … 1759 1756 // already in front pvs => in both pvss 1760 1757 if (leaf->Mailed()) 1761 {1762 1758 leaf->Mail(2); 1763 }1764 1759 else 1765 1760 leaf->Mail(1);
Note: See TracChangeset
for help on using the changeset viewer.