Ignore:
Timestamp:
02/03/06 13:03:35 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r583 r584  
    12441244                } 
    12451245 
    1246                 Debug << i << ": pvs size=" << (int)vc->GetPvs().GetSize() 
     1246                Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc) 
    12471247                          << ", piercing rays=" << (int)vcRays.size() << endl; 
    12481248                         // << ", leaves=" << (int)vc->mLeaves.size() << endl; 
     
    20662066 
    20672067 
    2068 void VspKdViewCellsManager::CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates) 
     2068void VspKdViewCellsManager::CollectMergeCandidates(const VssRayContainer &rays,  
     2069                                                                                                   vector<MergeCandidate> &candidates) 
    20692070{ 
    20702071        // TODO 
     
    23652366        RefineViewCells(postProcessRays, objects); 
    23662367 
     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; 
     2386 
    23672387        mViewCellsTree->CompressViewCellsPvs(); 
     2388 
     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; 
    23682403 
    23692404        if (1) 
Note: See TracChangeset for help on using the changeset viewer.