Ignore:
Timestamp:
10/12/05 01:42:34 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp

    r319 r320  
    236236  vector<Ray> vcRays[5]; 
    237237 
     238  vector<Ray> viewCellRays; // used for BSP tree construction 
    238239  const int fromRaysBspThresh = 1000; 
    239240 
     
    246247                // construct Bsp tree if not 
    247248                if ((mViewCellsType == Preprocessor::BSP_VIEW_CELLS) && 
    248                         !mBspTree->GetRoot() && (passSamples > fromRaysBspThresh)) 
     249                        !mBspTree->GetRoot() && (totalSamples >= fromRaysBspThresh)) 
    249250                { 
    250251                        BuildBspTree(); 
     
    337338                                         
    338339                                        // construct a ray 
    339  
    340340                                        SetupRay(ray, point, direction); 
    341341                                         
     
    344344                                        if (mViewCellsType == BSP_VIEW_CELLS)  
    345345                                        { 
     346                                                // save rays for bsp tree construction 
     347                                                if (!mBspTree->GetRoot() && (totalSamples < fromRaysBspThresh)) 
     348                                                { 
     349                                                        viewCellRays.push_back(ray); 
     350                                                } 
    346351                                                // check whether we can add this to the rays 
    347352                                                for (int k = 0; k < ray.viewCells.size(); ++ k) 
Note: See TracChangeset for help on using the changeset viewer.