Changeset 1143 for GTP/trunk/Lib/Vis/Preprocessing/src/Pvs.cpp
- Timestamp:
- 07/19/06 18:31:33 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Pvs.cpp
r1141 r1143 30 30 Intersectable *obj = (*it).first; 31 31 32 // found kd node 33 // the pvs is the sum of the objects in the leaves in the subtree 34 // We eliminate already accounted kd nodes and objects 35 // using mailboxing. 32 36 if (obj->Type() == Intersectable::KD_INTERSECTABLE) 33 37 { … … 51 55 if (node->IsLeaf()) 52 56 { 53 54 57 KdLeaf *leaf = dynamic_cast<KdLeaf *>(node); 55 58 56 59 pvs += (int)(leaf->mObjects.size() - leaf->mMultipleObjects.size()); 57 60 58 ObjectContainer::const_iterator it, it_end = leaf->mMultipleObjects.end(); 61 // Objects already accounted for can only be found among those 62 // which are referenced in more than one leaf 63 ObjectContainer::const_iterator oit, oit_end = leaf->mMultipleObjects.end(); 64 for (oit = leaf->mMultipleObjects.begin(); oit != oit_end; ++ oit) 59 65 { 60 Intersectable *object = * it;66 Intersectable *object = *oit; 61 67 62 68 if (!object->Mailed())
Note: See TracChangeset
for help on using the changeset viewer.