- Timestamp:
- 11/15/05 01:42:05 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r411 r412 741 741 //sampleContributions += mBspTree->GetStat().sampleContributions; 742 742 743 Debug << mVspKdTree->GetStatistics(); 744 743 745 // throw away samples because BSP leaves not stored in order 744 746 // Need ordered rays for post processing => collect new rays … … 784 786 sampleContributions += mBspTree->GetStat().sampleContributions; 785 787 786 BspTreeStatistics(Debug); 788 BspTreeStatistics(Debug); 787 789 788 790 if (0) Export("vc_bsptree.x3d", false, false, true); -
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h
r411 r412 108 108 int Interior() const { return nodes / 2; } 109 109 int Leaves() const { return (nodes / 2) + 1; } 110 double AvgDepth() const { return accumDepth / (double)Leaves();}; // TODO: computation wrong 110 // TODO: computation wrong 111 double AvgDepth() const { return accumDepth / (double)Leaves();}; 111 112 112 113 void Reset() -
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.