Ignore:
Timestamp:
03/31/06 10:37:45 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r719 r720  
    309309        disposeRays(initialSamples, outRays); 
    310310         
    311         cout << "testing filter ... "; 
    312  
    313         TestFilter(preprocessor->mObjects); 
    314  
    315         cout << "finished" << endl; 
     311        // testing the view cell filter functionality    
     312        if (0) TestFilter(preprocessor->mObjects); 
    316313 
    317314        // -- stats after contruction 
     
    359356                                                Preprocessor::SPATIAL_BOX_BASED_DISTRIBUTION;*/ 
    360357 
    361                 if (0) 
    362                         dirSamples = !dirSamples; // toggle sampling method 
     358                if (0) dirSamples = !dirSamples; // toggle sampling method 
    363359 
    364360                numSamples += CastPassSamples(mSamplesPerPass,  
     
    414410                ComputeSampleContributions(postProcessSamples, true, storeViewCells); 
    415411 
    416         // merge the view cells 
     412        //-- post processing (e.g.,merging) of the view cells 
    417413        PostProcess(preprocessor->mObjects, postProcessSamples); 
    418414 
    419         // only for testing 
     415        // only for debugging purpose 
    420416        if (TEST_EMPTY_VIEW_CELLS) 
    421417                CollectEmptyViewCells(); 
     
    444440    //SetValidity(0, 99999999999); 
    445441 
     442 
     443        // evaluation of the paritition, i.e., a number of new samples are cast 
    446444        if (mEvaluateViewCells) 
    447445        { 
     
    11361134void ViewCellsManager::UpdatePvs() 
    11371135{ 
    1138         if (mViewCellPvsIsUpdated) 
     1136        if (mViewCellPvsIsUpdated || !ViewCellsTreeConstructed()) 
    11391137                return; 
    11401138 
     
    12451243void ViewCellsManager::ResetViewCells() 
    12461244{ 
     1245        // recollect view cells 
    12471246        mViewCells.clear(); 
    1248          
    12491247        CollectViewCells(); 
    12501248         
     1249         
     1250        // stats are computed once more 
    12511251        mCurrentViewCellsStats.Reset(); 
    12521252        EvaluateViewCellsStats(); 
     
    33253325                maxPvs = mMaxPvsSize; 
    33263326        } 
     3327 
    33273328        Debug << "setting validity, min: " << minPvs << " max: " << maxPvs << endl; 
    33283329        cout << "setting validity, min: " << minPvs << " max: " << maxPvs << endl; 
     
    33313332 
    33323333        // update valid view space according to valid view cells 
    3333         if (0) 
    3334                 mVspBspTree->ValidateTree(); 
    3335  
    3336         // has to be recomputed 
     3334        if (0) mVspBspTree->ValidateTree(); 
     3335 
     3336        // area has to be recomputed 
    33373337        mTotalAreaValid = false; 
    33383338        VssRayContainer postProcessRays; 
     
    33453345        // and to correct the rendering statistics 
    33463346        if (0) FinalizeViewCells(false); 
    3347          
    3348          
     3347                 
    33493348        //-- merge the individual view cells 
    33503349        MergeViewCells(postProcessRays, objects); 
    33513350         
    3352         // only for testing 
     3351 
     3352        // only for debugging purpose: test if the subdivision is valid 
    33533353        TestSubdivision(); 
    33543354 
    33553355        //-- refines the merged view cells 
    3356         if (0) 
    3357                 RefineViewCells(postProcessRays, objects); 
     3356        if (0) RefineViewCells(postProcessRays, objects); 
    33583357 
    33593358         
    33603359        //-- render simulation after merge + refine 
    3361          
    33623360        cout << "\nevaluating bsp view cells render time before compress ... "; 
    33633361        dynamic_cast<RenderSimulator *>(mRenderer)->RenderScene(); 
     
    33723370 
    33733371        //-- compression 
    3374  
    33753372        if (ViewCellsTreeConstructed() && mCompressViewCells) 
    33763373        { 
Note: See TracChangeset for help on using the changeset viewer.