Ignore:
Timestamp:
01/19/06 09:59:14 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r553 r554  
    704704        cout<<"Average PVS size = "<<avgPvs<<endl; 
    705705 
    706         const int nSamples = mViewCellsManager->GetConstructionSamples(); 
    707  
    708         //Debug << "samples: " << samples << " construction samples " << mViewCellsManager->GetConstructionSamples() << endl; 
    709706        // construct view cells after vss 
    710         if (!mViewCellsManager->ViewCellsConstructed() && (samples >= mVssSamples)) 
     707        if (!mViewCellsManager->ViewCellsConstructed() &&  
     708                (samples + mInitialSamples >= mViewCellsManager->GetConstructionSamples())) 
    711709        { 
    712710                Debug << "samples " << samples << " initial " << mInitialSamples << " " << samples + mInitialSamples << endl; 
    713711                VssRayContainer constructionRays; 
    714                 vssTree->CollectRays(constructionRays, nSamples); 
     712                vssTree->CollectRays(constructionRays, mViewCellsManager->GetConstructionSamples()); 
    715713 
    716714                Debug << "collected rays: " << constructionRays.size() << endl; 
    717715 
    718716                // test if we really have enough rays 
    719                 if (constructionRays.size() >= nSamples) 
    720                         mViewCellsManager->Construct(mObjects, constructionRays); 
     717                //if (constructionRays.size() >= nSamples) 
     718                mViewCellsManager->Construct(mObjects, constructionRays); 
    721719        } 
    722720 
     
    751749          VssRayContainer constructionRays; 
    752750 
    753           vssTree->CollectRays(constructionRays); 
     751          vssTree->CollectRays(constructionRays,  
     752                                                   mViewCellsManager->GetConstructionSamples()); 
    754753          Debug << "collected rays: " << constructionRays.size() << endl; 
    755754 
Note: See TracChangeset for help on using the changeset viewer.