Ignore:
Timestamp:
03/05/07 11:07:44 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2176 r2187  
    969969        if (mShowVisualization) 
    970970        { 
    971                 if (0) 
    972                 { 
    973                         mStrategies.clear(); 
    974                         mStrategies.push_back(SamplingStrategy::VIEWCELL_BORDER_BASED_DISTRIBUTION); 
    975                 } 
    976  
    977971                /////////////// 
    978972                //-- visualization rays, e.g., to show some samples in the scene 
     
    27122706        if (!useHitObjects)  
    27132707        { 
     2708                // store higher order object (e.g., bvh node) instead of object itself 
    27142709                VssRayContainer::const_iterator it, it_end = rays.end(); 
    27152710         
     
    27172712                { 
    27182713                        VssRay *vssRay = *it; 
     2714 
    27192715                        // set only the termination object 
    2720                         vssRay->mTerminationObject = GetIntersectable( 
    2721                                 *vssRay, 
    2722                                 true); 
     2716                        vssRay->mTerminationObject = GetIntersectable(*vssRay, true); 
    27232717                } 
    27242718        } 
     
    27712765        ray.mRelativePvsContribution = 0.0f; 
    27722766 
    2773         mSamplesStat.mRays++; 
     2767        ++ mSamplesStat.mRays; 
    27742768         
    27752769        if (!ray.mTerminationObject) 
     
    27962790        static VssRay *lastVssRay = NULL; 
    27972791         
     2792        // check if last ray was not same ray with reverse direction 
    27982793        if (lastVssRay == NULL || 
    27992794                !(ray.mOrigin == lastVssRay->mTermination) || 
     
    28192814          ray.mViewCells = viewCells; 
    28202815#else 
    2821           cerr<<"Vss store viewcells not supported."<<endl; 
     2816          cerr << "Vss store viewcells not supported." << endl; 
    28222817          exit(1); 
    28232818#endif 
     
    28502845        mSamplesStat.mPvsContributions += ray.mPvsContribution; 
    28512846        if (ray.mPvsContribution) 
    2852           mSamplesStat.mContributingRays++; 
     2847                ++ mSamplesStat.mContributingRays; 
    28532848         
    28542849#if AVG_RAY_CONTRIBUTIONS 
Note: See TracChangeset for help on using the changeset viewer.