Changeset 412 for trunk/VUT/GtpVisibilityPreprocessor/src/VspKdTree.h
- Timestamp:
- 11/15/05 01:42:05 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspKdTree.h
r411 r412 68 68 69 69 // Constructor 70 VspKdStatistics() { 71 Reset(); 70 VspKdStatistics() 71 { 72 Reset(); 72 73 } 73 74 … … 76 77 int Leaves() const { return (nodes/2) + 1; } 77 78 78 void Reset() {79 nodes = 0;80 for (int i=0; i<7; i++) 81 splits[i] = 0; 82 rays = queryDomains= 0;83 rayRefs = 0;84 maxDepthNodes = 0;85 minPvsNodes = 0;86 minRaysNodes = 0;87 maxRayRefs = 0; 88 addedRayRefs = removedRayRefs = 0;89 initialPvsSize= 0;90 maxRayContribNodes= 0;91 minSizeNodes = 0;92 } 93 79 void Reset() 80 { 81 nodes = 0; 82 for (int i=0; i<7; i++) 83 splits[i] = 0; 84 rays = queryDomains = 0; 85 rayRefs = 0; 86 maxDepthNodes = 0; 87 minPvsNodes = 0; 88 minRaysNodes = 0; 89 maxRayRefs = 0; 90 addedRayRefs = removedRayRefs = 0; 91 initialPvsSize = 0; 92 maxRayContribNodes = 0; 93 minSizeNodes = 0; 94 } 94 95 95 96 void … … 558 559 // axis aligned bounding box of directions 559 560 AxisAlignedBox3 dirBBox; 560 561 562 const VspKdStatistics &GetStatistics() const { 563 return mStat; 564 } 561 565 ///////////////////////////// 562 566 // Construction parameters … … 616 620 617 621 ///////////////////////////// 618 VspKdStatistics stat;622 VspKdStatistics mstat; 619 623 620 624 VspKdTree();
Note: See TracChangeset
for help on using the changeset viewer.