Ignore:
Timestamp:
02/03/06 17:48:15 (18 years ago)
Author:
mattausch
Message:

fixed bug in compressing

File:
1 edited

Legend:

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

    r584 r585  
    23662366        RefineViewCells(postProcessRays, objects); 
    23672367 
    2368         ViewCellContainer::const_iterator vit, vit_end = mViewCells.end(); 
    2369  
    2370         int pvsSize = 0; 
    2371         int numPvsEntries = 0; 
    2372  
    2373         int vidx = 0; 
    2374         for (vit = mViewCells.begin(); vit != vit_end; ++ vit) 
    2375         { 
    2376                 const int vcPvs = mViewCellsTree->GetPvsSize(*vit); 
    2377                 const int pvsEntries = mViewCellsTree->GetNumPvsEntries(*vit); 
    2378  
    2379                 pvsSize += vcPvs; 
    2380                 numPvsEntries += pvsEntries; 
    2381                 Debug << "Viewcell " << vidx ++ << ": " << vcPvs << endl; 
    2382         } 
    2383  
    2384         Debug << "pvs size before compress: " << pvsSize << endl; 
    2385         Debug << "number of entries before compress: " << numPvsEntries << endl; 
     2368        int pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 
     2369        Debug << "number of entries before compress: " << pvsEntries << endl; 
    23862370 
    23872371        mViewCellsTree->CompressViewCellsPvs(); 
    23882372 
    2389         pvsSize = numPvsEntries = vidx = 0; 
    2390  
    2391         for (vit = mViewCells.begin(); vit != vit_end; ++ vit) 
    2392         { 
    2393                 const int vcPvs = mViewCellsTree->GetPvsSize(*vit); 
    2394                 const int pvsEntries = mViewCellsTree->GetNumPvsEntries(*vit); 
    2395                  
    2396                 pvsSize += vcPvs; 
    2397                 numPvsEntries += pvsEntries; 
    2398                 Debug << "Viewcell " << vidx ++ << ": " << vcPvs << endl;        
    2399         } 
    2400  
    2401         Debug << "pvs size after compress: " << pvsSize << endl; 
    2402         Debug << "number of entries after compress: " << numPvsEntries << endl; 
     2373        pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 
     2374        Debug << "number of entries after compress: " << pvsEntries << endl; 
    24032375 
    24042376        if (1) 
Note: See TracChangeset for help on using the changeset viewer.