Changeset 554


Ignore:
Timestamp:
01/19/06 09:59:14 (18 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/GtpVisibilityPreprocessor/src
Files:
2 edited

Legend:

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

    r552 r554  
    20732073        // should maybe be done here to allow merge working with area or volume 
    20742074        // and to correct the rendering statistics 
    2075         if (1) 
     2075        if (0) 
    20762076        { 
    20772077                FinalizeViewCells(false); 
  • 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.