Changeset 1640 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.h
- Timestamp:
- 10/18/06 18:17:27 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.h
r1633 r1640 79 79 /// number of invalid leaves 80 80 int invalidLeaves; 81 /// accumulatednumber of rays refs82 int accumRays;81 /// number of rays refs 82 int rayRefs; 83 83 /// overall pvs size 84 84 int pvs; … … 100 100 // TODO: computation wrong 101 101 double AvgDepth() const { return accumDepth / (double)Leaves();}; 102 double AvgRays() const { return accumRays / (double)Leaves();};102 double AvgRays() const { return rayRefs / (double)Leaves();}; 103 103 104 104 void Reset() … … 124 124 maxPvs = 0; 125 125 invalidLeaves = 0; 126 accumRays = 0;126 rayRefs = 0; 127 127 maxObjectRefs = 0; 128 128 mGlobalCostMisses = 0; … … 996 996 int EvalContributionToPvs(KdLeaf *leaf) const; 997 997 998 /** Creates new root of hierarchy and computes bounding box. 999 Has to be called before the preparation of the subdivision. 1000 */ 1001 void Initialise(const VssRayContainer &rays, 1002 AxisAlignedBox3 *forcedBoundingBox); 998 1003 999 1004 protected:
Note: See TracChangeset
for help on using the changeset viewer.