Changeset 553


Ignore:
Timestamp:
01/19/06 02:41:54 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r552 r553  
    708708        //Debug << "samples: " << samples << " construction samples " << mViewCellsManager->GetConstructionSamples() << endl; 
    709709        // construct view cells after vss 
    710         if (!mViewCellsManager->ViewCellsConstructed() && 
    711                 ((samples + mInitialSamples > nSamples)  || (samples >= mVssSamples))) 
     710        if (!mViewCellsManager->ViewCellsConstructed() && (samples >= mVssSamples)) 
    712711        { 
    713712                Debug << "samples " << samples << " initial " << mInitialSamples << " " << samples + mInitialSamples << endl; 
     
    718717 
    719718                // test if we really have enough rays 
    720                 if ((samples >= mVssSamples) || (constructionRays.size() >= nSamples)) 
     719                if (constructionRays.size() >= nSamples) 
    721720                        mViewCellsManager->Construct(mObjects, constructionRays); 
    722721        } 
     
    747746 
    748747 
     748  // at the latest create view cells here 
     749  if (!mViewCellsManager->ViewCellsConstructed()) 
     750  { 
     751          VssRayContainer constructionRays; 
     752 
     753          vssTree->CollectRays(constructionRays); 
     754          Debug << "collected rays: " << constructionRays.size() << endl; 
     755 
     756          mViewCellsManager->Construct(mObjects, constructionRays); 
     757  } 
     758 
    749759  Debug << vssTree->stat << endl; 
    750760  VssRayContainer viewCellRays; 
Note: See TracChangeset for help on using the changeset viewer.