Changeset 1696 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 10/29/06 18:17:38 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1695 r1696 244 244 { 245 245 CLEAR_CONTAINER(mViewCells); 246 } 247 else 248 { 249 DEL_PTR(mViewCellsTree); 246 250 } 247 251 } … … 3041 3045 { 3042 3046 // prepare some rays for output 3043 VssRayContainer::const_iterator rit, rit_end = (*vit)-> mVssRays.end();3044 for (rit = (*vit)-> mVssRays.begin(); rit != rit_end; ++ rit)3047 VssRayContainer::const_iterator rit, rit_end = (*vit)->GetOrCreateRays()->end(); 3048 for (rit = (*vit)->GetOrCreateRays()->begin(); rit != rit_end; ++ rit) 3045 3049 { 3046 3050 collectRays.push_back(*rit); … … 4968 4972 4969 4973 4970 // should maybe be done here to allow merge working with area or volume4971 // and to correct the rendering statistics4972 if (0) FinalizeViewCells(false);4973 4974 4974 // compute tree by merging the nodes of the spatial hierarchy 4975 4975 ViewCell *root = ConstructSpatialMergeTree(mHierarchyManager->GetVspTree()->GetRoot()); 4976 4976 mViewCellsTree->SetRoot(root); 4977 4977 4978 4979 4978 ////////////////////////// 4980 //-- update pvs in the whole hierarchy 4979 //-- update pvs up to the root of the hierarchy 4980 4981 4981 ObjectPvs pvs; 4982 4982 UpdatePvsForEvaluation(root, pvs); … … 5010 5010 //-- some tasks still to do on the view cells: 5011 5011 //-- Compute meshes from view cell geometry, evaluate volume and / or area 5012 5012 5013 if (1) FinalizeViewCells(true); 5013 5014 5014 5015 // write out view cells (this moved to preprocessor) 5015 if ( 1 &&mExportViewCells)5016 if (mExportViewCells) 5016 5017 { 5017 5018 char filename[100];
Note: See TracChangeset
for help on using the changeset viewer.