Changeset 2187 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 03/05/07 11:07:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2176 r2187 969 969 if (mShowVisualization) 970 970 { 971 if (0)972 {973 mStrategies.clear();974 mStrategies.push_back(SamplingStrategy::VIEWCELL_BORDER_BASED_DISTRIBUTION);975 }976 977 971 /////////////// 978 972 //-- visualization rays, e.g., to show some samples in the scene … … 2712 2706 if (!useHitObjects) 2713 2707 { 2708 // store higher order object (e.g., bvh node) instead of object itself 2714 2709 VssRayContainer::const_iterator it, it_end = rays.end(); 2715 2710 … … 2717 2712 { 2718 2713 VssRay *vssRay = *it; 2714 2719 2715 // set only the termination object 2720 vssRay->mTerminationObject = GetIntersectable( 2721 *vssRay, 2722 true); 2716 vssRay->mTerminationObject = GetIntersectable(*vssRay, true); 2723 2717 } 2724 2718 } … … 2771 2765 ray.mRelativePvsContribution = 0.0f; 2772 2766 2773 mSamplesStat.mRays++;2767 ++ mSamplesStat.mRays; 2774 2768 2775 2769 if (!ray.mTerminationObject) … … 2796 2790 static VssRay *lastVssRay = NULL; 2797 2791 2792 // check if last ray was not same ray with reverse direction 2798 2793 if (lastVssRay == NULL || 2799 2794 !(ray.mOrigin == lastVssRay->mTermination) || … … 2819 2814 ray.mViewCells = viewCells; 2820 2815 #else 2821 cerr <<"Vss store viewcells not supported."<<endl;2816 cerr << "Vss store viewcells not supported." << endl; 2822 2817 exit(1); 2823 2818 #endif … … 2850 2845 mSamplesStat.mPvsContributions += ray.mPvsContribution; 2851 2846 if (ray.mPvsContribution) 2852 mSamplesStat.mContributingRays++;2847 ++ mSamplesStat.mContributingRays; 2853 2848 2854 2849 #if AVG_RAY_CONTRIBUTIONS
Note: See TracChangeset
for help on using the changeset viewer.