- Timestamp:
- 12/20/06 15:58:22 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1913 r1915 758 758 759 759 const float beta = (1.0f - alpha) * (totalPvs - childPvs); 760 #if 1 761 const float newPvs = childPvs + beta; 762 #else 763 const float newPvs = alpha * childPvs + (1.0f - alpha) * totalPvs; 764 #endif 760 765 761 766 cout << "alpha " << alpha << " beta: " << beta << " child: " << childPvs << " parent: " << totalPvs << endl; 762 767 763 const float newPvs = childPvs + beta;764 765 768 if ((newPvs < childPvs - Limits::Small) || (newPvs > totalPvs + Limits::Small)) 766 769 cout << "Error!! " << newPvs << endl; -
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r1913 r1915 900 900 const float correctedOldPvs = splitCandidate.mParentData.mCorrectedPvs * oldPvsRatio; 901 901 902 cout <<"here102 "<< endl;903 cout << "old pvs ratio: " << oldPvsRatio << endl; 902 cout <<"here102 old pvs ratio: " << oldPvsRatio << " " << splitCandidate.mParentData.mPvs << " " << oldPvsSize << endl; 903 904 904 splitCandidate.mCorrectedFrontPvs = 905 905 mHierarchyManager->EvalCorrectedPvs(fPvsSize, … … 911 911 correctedOldPvs, 912 912 splitCandidate.GetAvgRayContribution()); 913 914 913 915 914 cout << "vsp front entries " << fPvsSize << " corrected: " << splitCandidate.mCorrectedFrontPvs << endl;
Note: See TracChangeset
for help on using the changeset viewer.