Changeset 320 for trunk/VUT/GtpVisibilityPreprocessor/src
- Timestamp:
- 10/12/05 01:42:34 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r319 r320 236 236 vector<Ray> vcRays[5]; 237 237 238 vector<Ray> viewCellRays; // used for BSP tree construction 238 239 const int fromRaysBspThresh = 1000; 239 240 … … 246 247 // construct Bsp tree if not 247 248 if ((mViewCellsType == Preprocessor::BSP_VIEW_CELLS) && 248 !mBspTree->GetRoot() && ( passSamples >fromRaysBspThresh))249 !mBspTree->GetRoot() && (totalSamples >= fromRaysBspThresh)) 249 250 { 250 251 BuildBspTree(); … … 337 338 338 339 // construct a ray 339 340 340 SetupRay(ray, point, direction); 341 341 … … 344 344 if (mViewCellsType == BSP_VIEW_CELLS) 345 345 { 346 // save rays for bsp tree construction 347 if (!mBspTree->GetRoot() && (totalSamples < fromRaysBspThresh)) 348 { 349 viewCellRays.push_back(ray); 350 } 346 351 // check whether we can add this to the rays 347 352 for (int k = 0; k < ray.viewCells.size(); ++ k)
Note: See TracChangeset
for help on using the changeset viewer.