Changeset 1586 for GTP/trunk/Lib/Vis/Preprocessing/src/Pvs.cpp
- Timestamp:
- 10/09/06 15:57:28 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Pvs.cpp
r1486 r1586 23 23 We eliminate already accounted kd nodes and objects using mailboxing. 24 24 */ 25 static int CountNewObjectsInKdNode(KdIntersectable *kdobj)25 static int EvalKdNodeContribution(KdIntersectable *kdobj) 26 26 { 27 27 int pvs = 0; … … 76 76 77 77 78 /** the pvs is the number of different objects in the node leaves78 /** Returns the the number of different objects in the leaves of the node. 79 79 We eliminate already accounted kd nodes and objects using mailboxing. 80 80 */ 81 static int CountNewObjectsInBvhNode(BvhIntersectable *bvhobj)81 static int EvalBvhNodeContribution(BvhIntersectable *bvhobj) 82 82 { 83 83 BvhNode *node= bvhobj->GetItem(); … … 113 113 { 114 114 BvhLeaf *leaf = dynamic_cast<BvhLeaf *>(node); 115 115 116 116 // add #objects exclusivly in this node 117 117 pvs += (int)leaf->mObjects.size(); … … 126 126 } 127 127 } 128 128 129 return pvs; 129 130 } … … 151 152 // found kd node 152 153 KdIntersectable *kdObj = dynamic_cast<KdIntersectable *>(obj); 153 pvs += CountNewObjectsInKdNode(kdObj);154 pvs += EvalKdNodeContribution(kdObj); 154 155 break; 155 156 } … … 157 158 { 158 159 BvhIntersectable *bvhObj = dynamic_cast<BvhIntersectable *>(obj); 159 pvs += CountNewObjectsInBvhNode(bvhObj);160 pvs += EvalBvhNodeContribution(bvhObj); 160 161 break; 161 162 }
Note: See TracChangeset
for help on using the changeset viewer.