Changeset 735 for GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
- Timestamp:
- 04/08/06 12:15:50 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r734 r735 120 120 environment->GetBoolValue("VspBspTree.simulateOctree", mSimulateOctree); 121 121 environment->GetBoolValue("VspBspTree.useRandomAxis", mUseRandomAxis); 122 environment->Get BoolValue("VspBspTree.useBreathFirstSplits", mBreathFirstSplits);122 environment->GetIntValue("VspBspTree.nodePriorityQueueType", mNodePriorityQueueType); 123 123 124 124 environment->GetBoolValue("ViewCells.PostProcess.emptyViewCellsMerge", mEmptyViewCellsMergeAllowed); … … 154 154 Debug << "subdivision stats log: " << subdivisionStatsLog << endl; 155 155 Debug << "use random axis: " << mUseRandomAxis << endl; 156 Debug << "breath first splits: " << mBreathFirstSplits << endl; 157 Debug << "depth first splits: " << mDepthFirstSplits << endl; 158 156 Debug << "priority queue type: " << mNodePriorityQueueType << endl; 159 157 Debug << "empty view cells merge: " << mEmptyViewCellsMergeAllowed << endl; 160 161 158 Debug << "octree: " << mSimulateOctree << endl; 162 159 … … 942 939 void VspBspTree::EvalPriority(VspBspTraversalData &tData) const 943 940 { 944 if (mBreathFirstSplits) 941 switch (mNodePriorityQueueType) 942 { 943 case BREATH_FIRST: 945 944 tData.mPriority = (float)-tData.mDepth; 946 else if (mDepthFirstSplits) 945 break; 946 case DEPTH_FIRST: 947 947 tData.mPriority = (float)tData.mDepth; 948 else 948 break; 949 default: 949 950 tData.mPriority = tData.mPvs * tData.mProbability; 950 //cout << "priority: " << tData.mPriority << endl; 951 //Debug << "priority: " << tData.mPriority << endl; 952 break; 953 } 951 954 } 952 955
Note: See TracChangeset
for help on using the changeset viewer.