Ignore:
Timestamp:
01/12/06 02:44:17 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r519 r520  
    100100void ViewCellsManager::ComputeSampleContributions(const VssRayContainer &rays) 
    101101{ 
    102         Debug << "here2" << endl; 
    103102        // view cells not yet constructed 
    104103        if (!ViewCellsConstructed()) 
    105104                return; 
    106         Debug << "here " << rays.size() << endl; 
    107105 
    108106        VssRayContainer::const_iterator it, it_end = rays.end(); 
     
    335333        mViewCellsStats.Reset(); 
    336334        EvaluateViewCellsStats(); 
    337  
     335        // has to be recomputed 
    338336        mTotalAreaValid = false; 
    339337} 
     
    361359                                  termination, 
    362360                                  viewcells); 
    363   Debug << "constribution: " << (int)viewcells.size() << endl; 
     361  //Debug << "constribution: " << (int)viewcells.size() << endl; 
    364362  // copy viewcells memory efficiently 
    365363  const bool storeViewcells = false; 
     
    19651963                return 0; 
    19661964        } 
    1967         // view cells already finished 
    1968         else if (mViewCellsFinished) 
     1965 
     1966        EvaluateViewCellsStats(); 
     1967 
     1968        // view cells already finished post processing step 
     1969        if (mViewCellsFinished) 
    19691970                return 0; 
    19701971 
     
    19731974 
    19741975        Debug << "post processing using " << (int)postProcessRays.size() << " samples" << endl; 
    1975         EvaluateViewCellsStats(); 
     1976         
    19761977        Debug << "\nview cell partition after sampling:\n" << mViewCellsStats << endl << endl; 
    19771978 
     
    19831984        // collapse sibling leaves that share the same view cell 
    19841985        mVspBspTree->CollapseTree(); 
     1986 
     1987        ResetViewCells(); 
    19851988 
    19861989        // real meshes are only contructed only at this stage 
     
    23722375         
    23732376        bool success = parser.ParseFile(filename, mVspBspTree, this, objects); 
     2377        mVspBspTree->RepairViewCellsLeafLists(); 
     2378        mVspBspTree->mBox = GetViewSpaceBox(); 
    23742379        ResetViewCells(); 
    23752380        CreateViewCellMeshes(); 
Note: See TracChangeset for help on using the changeset viewer.