Ignore:
Timestamp:
12/05/05 20:33:53 (19 years ago)
Author:
mattausch
Message:

started to add view cell merging to vsp kd tree

File:
1 edited

Legend:

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

    r451 r452  
    390390                delete exporter; 
    391391        } 
    392  
    393         //-- post process view cells 
     392         
     393        // construct view cells if not already constructed 
     394        if (!mViewCellsManager->ViewCellsConstructed()) 
     395                mViewCellsManager->Construct(objects, mVssSampleRays); 
     396 
    394397        mViewCellsManager->PostProcess(objects, mSampleRays); 
    395                  
    396  
     398         
    397399        //-- several visualizations and statistics 
    398                   
     400        Debug << "===== Final view cells statistics ==========" << endl; 
     401 
     402        mViewCellsManager->PrintStatistics(Debug); 
     403 
    399404        //-- render simulation after merge 
    400405        cout << "\nevaluating bsp view cells render time after merge ... "; 
     
    406411        Debug << ss << endl; 
    407412         
    408  
    409413        mViewCellsManager->Visualize(objects, mSampleRays);      
    410414     
     
    423427        if (!mViewCellsManager->ViewCellsConstructed()) 
    424428        { 
    425                 RayContainer::const_iterator it, it_end = newRays.end(); 
    426  
    427                 if ((int)mVssSampleRays.size() <  
    428                         mViewCellsManager->GetConstructionSamples()) 
     429                if ((int)mVssSampleRays.size() < mViewCellsManager->GetConstructionSamples()) 
    429430                { 
     431                        RayContainer::const_iterator it, it_end = newRays.end(); 
     432 
    430433                        for (it = newRays.begin(); it != it_end; ++ it) 
    431                         { 
    432434                                mVssSampleRays.push_back(new VssRay(*(*it))); 
    433                         } 
    434435                } 
    435436                else 
     
    443444        } 
    444445        // Need rays (with ordered intersections) for post processing => collect new rays 
    445         else if (((int)mSampleRays.size() < mViewCellsManager->GetPostProcessSamples()) || 
    446                         ((int)mSampleRays.size() < mViewCellsManager->GetVisualizationSamples())) 
     446        if (((int)mSampleRays.size() < mViewCellsManager->GetPostProcessSamples()) || 
     447            ((int)mSampleRays.size() < mViewCellsManager->GetVisualizationSamples())) 
    447448        { 
    448449                RayContainer::const_iterator it, it_end = newRays.end(); 
Note: See TracChangeset for help on using the changeset viewer.