- Timestamp:
- 01/19/06 09:59:14 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.cpp
r552 r554 2073 2073 // should maybe be done here to allow merge working with area or volume 2074 2074 // and to correct the rendering statistics 2075 if ( 1)2075 if (0) 2076 2076 { 2077 2077 FinalizeViewCells(false); -
trunk/VUT/GtpVisibilityPreprocessor/src/VssPreprocessor.cpp
r553 r554 704 704 cout<<"Average PVS size = "<<avgPvs<<endl; 705 705 706 const int nSamples = mViewCellsManager->GetConstructionSamples();707 708 //Debug << "samples: " << samples << " construction samples " << mViewCellsManager->GetConstructionSamples() << endl;709 706 // construct view cells after vss 710 if (!mViewCellsManager->ViewCellsConstructed() && (samples >= mVssSamples)) 707 if (!mViewCellsManager->ViewCellsConstructed() && 708 (samples + mInitialSamples >= mViewCellsManager->GetConstructionSamples())) 711 709 { 712 710 Debug << "samples " << samples << " initial " << mInitialSamples << " " << samples + mInitialSamples << endl; 713 711 VssRayContainer constructionRays; 714 vssTree->CollectRays(constructionRays, nSamples);712 vssTree->CollectRays(constructionRays, mViewCellsManager->GetConstructionSamples()); 715 713 716 714 Debug << "collected rays: " << constructionRays.size() << endl; 717 715 718 716 // test if we really have enough rays 719 if (constructionRays.size() >= nSamples)720 717 //if (constructionRays.size() >= nSamples) 718 mViewCellsManager->Construct(mObjects, constructionRays); 721 719 } 722 720 … … 751 749 VssRayContainer constructionRays; 752 750 753 vssTree->CollectRays(constructionRays); 751 vssTree->CollectRays(constructionRays, 752 mViewCellsManager->GetConstructionSamples()); 754 753 Debug << "collected rays: " << constructionRays.size() << endl; 755 754
Note: See TracChangeset
for help on using the changeset viewer.