- Timestamp:
- 02/03/06 13:03:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.cpp
r583 r584 1244 1244 } 1245 1245 1246 Debug << i << ": pvs size=" << (int) vc->GetPvs().GetSize()1246 Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc) 1247 1247 << ", piercing rays=" << (int)vcRays.size() << endl; 1248 1248 // << ", leaves=" << (int)vc->mLeaves.size() << endl; … … 2066 2066 2067 2067 2068 void VspKdViewCellsManager::CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates) 2068 void VspKdViewCellsManager::CollectMergeCandidates(const VssRayContainer &rays, 2069 vector<MergeCandidate> &candidates) 2069 2070 { 2070 2071 // TODO … … 2365 2366 RefineViewCells(postProcessRays, objects); 2366 2367 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 2367 2387 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; 2368 2403 2369 2404 if (1)
Note: See TracChangeset
for help on using the changeset viewer.