- Timestamp:
- 12/05/05 20:33:53 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r451 r452 390 390 delete exporter; 391 391 } 392 393 //-- post process view cells 392 393 // construct view cells if not already constructed 394 if (!mViewCellsManager->ViewCellsConstructed()) 395 mViewCellsManager->Construct(objects, mVssSampleRays); 396 394 397 mViewCellsManager->PostProcess(objects, mSampleRays); 395 396 398 397 399 //-- several visualizations and statistics 398 400 Debug << "===== Final view cells statistics ==========" << endl; 401 402 mViewCellsManager->PrintStatistics(Debug); 403 399 404 //-- render simulation after merge 400 405 cout << "\nevaluating bsp view cells render time after merge ... "; … … 406 411 Debug << ss << endl; 407 412 408 409 413 mViewCellsManager->Visualize(objects, mSampleRays); 410 414 … … 423 427 if (!mViewCellsManager->ViewCellsConstructed()) 424 428 { 425 RayContainer::const_iterator it, it_end = newRays.end(); 426 427 if ((int)mVssSampleRays.size() < 428 mViewCellsManager->GetConstructionSamples()) 429 if ((int)mVssSampleRays.size() < mViewCellsManager->GetConstructionSamples()) 429 430 { 431 RayContainer::const_iterator it, it_end = newRays.end(); 432 430 433 for (it = newRays.begin(); it != it_end; ++ it) 431 {432 434 mVssSampleRays.push_back(new VssRay(*(*it))); 433 }434 435 } 435 436 else … … 443 444 } 444 445 // Need rays (with ordered intersections) for post processing => collect new rays 445 elseif (((int)mSampleRays.size() < mViewCellsManager->GetPostProcessSamples()) ||446 446 if (((int)mSampleRays.size() < mViewCellsManager->GetPostProcessSamples()) || 447 ((int)mSampleRays.size() < mViewCellsManager->GetVisualizationSamples())) 447 448 { 448 449 RayContainer::const_iterator it, it_end = newRays.end();
Note: See TracChangeset
for help on using the changeset viewer.