- Timestamp:
- 01/19/06 02:35:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssPreprocessor.cpp
r551 r552 704 704 cout<<"Average PVS size = "<<avgPvs<<endl; 705 705 706 const int nSamples = mViewCellsManager->GetConstructionSamples(); 707 706 708 //Debug << "samples: " << samples << " construction samples " << mViewCellsManager->GetConstructionSamples() << endl; 707 709 // construct view cells after vss 708 710 if (!mViewCellsManager->ViewCellsConstructed() && 709 ( samples + mInitialSamples > mViewCellsManager->GetConstructionSamples()))711 ((samples + mInitialSamples > nSamples) || (samples >= mVssSamples))) 710 712 { 713 Debug << "samples " << samples << " initial " << mInitialSamples << " " << samples + mInitialSamples << endl; 711 714 VssRayContainer constructionRays; 712 vssTree->CollectRays(constructionRays, 713 mViewCellsManager->GetConstructionSamples()); 714 mViewCellsManager->Construct(mObjects, constructionRays); 715 vssTree->CollectRays(constructionRays, nSamples); 716 717 Debug << "collected rays: " << constructionRays.size() << endl; 718 719 // test if we really have enough rays 720 if ((samples >= mVssSamples) || (constructionRays.size() >= nSamples)) 721 mViewCellsManager->Construct(mObjects, constructionRays); 715 722 } 716 723 … … 739 746 } 740 747 748 741 749 Debug << vssTree->stat << endl; 742 750 VssRayContainer viewCellRays;
Note: See TracChangeset
for help on using the changeset viewer.