- Timestamp:
- 02/03/06 23:02:07 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.cpp
r585 r586 57 57 58 58 environment->GetIntValue("ViewCells.active", mNumMergedViewCells); 59 environment->GetBoolValue("ViewCells.PostProcess.compress", mCompressViewCells); 59 60 60 61 mMinPvsSize = emptyViewCells ? 1 : 0; … … 2364 2365 2365 2366 //-- refines the merged view cells 2366 RefineViewCells(postProcessRays, objects); 2367 2368 int pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 2369 Debug << "number of entries before compress: " << pvsEntries << endl; 2370 2371 mViewCellsTree->CompressViewCellsPvs(); 2372 2373 pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 2374 Debug << "number of entries after compress: " << pvsEntries << endl; 2367 if (0) 2368 RefineViewCells(postProcessRays, objects); 2369 2370 if (mCompressViewCells) 2371 { 2372 int pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 2373 Debug << "number of entries before compress: " << pvsEntries << endl; 2374 2375 mViewCellsTree->CompressViewCellsPvs(); 2376 2377 pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 2378 Debug << "number of entries after compress: " << pvsEntries << endl; 2379 } 2375 2380 2376 2381 if (1) … … 2392 2397 2393 2398 //-- export shuffled view cells 2394 if ( 1)2399 if (0) 2395 2400 { 2396 2401 cout << "exporting shuffled view cells ... "; … … 2456 2461 2457 2462 // collapse sibling leaves that share the same view cell 2458 mVspBspTree->CollapseTree(); 2463 if (0) 2464 mVspBspTree->CollapseTree(); 2465 2459 2466 // recompute view cell list and statistics 2460 2467 ResetViewCells(); … … 2732 2739 2733 2740 2734 Debug << i << ": pvs size=" << (int) vc->GetPvs().GetSize()2741 Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc) 2735 2742 << ", piercing rays=" << (int)vcRays.size() << endl; 2736 2743 // << ", leaves=" << (int)vc->mLeaves.size() << endl;
Note: See TracChangeset
for help on using the changeset viewer.