Changeset 1698 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
- Timestamp:
- 10/30/06 12:09:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r1696 r1698 1638 1638 if (!obj) return; 1639 1639 1640 //const float renderCost = mViewCellsManager->SimpleRay &raynderCost(obj); 1641 const int renderCost = 1; 1640 const float renderCost = mViewCellsManager->EvalRenderCost(obj); 1642 1641 1643 1642 // object in no pvs => new … … 1650 1649 // the object belongs to no pvs in this case? 1651 1650 //if (cf == Ray::COINCIDENT) return; 1652 1653 1651 if (cf >= 0) // front pvs 1654 1652 { … … 1689 1687 { 1690 1688 if (!leaf) return; 1691 const int renderCost = countEntries ? 1 : (int)leaf->mObjects.size(); 1689 1690 const float renderCost = countEntries ? 1 : 1691 mHierarchyManager->mBvHierarchy->EvalAbsCost(leaf->mObjects); 1692 1692 1693 1693 // leaf in no pvs => new … … 1727 1727 } 1728 1728 } 1729 1730 1729 1731 1730 … … 1801 1800 // test if this leaf is in valid view space 1802 1801 VspLeaf *leaf = dynamic_cast<VspLeaf *>(node); 1802 1803 1803 if (leaf->TreeValid() && 1804 1804 (!onlyUnmailed || !leaf->Mailed()) &&
Note: See TracChangeset
for help on using the changeset viewer.