- Timestamp:
- 03/17/06 17:30:28 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
r697 r708 1321 1321 RegisterOption("ViewCells.Visualization.colorCode", 1322 1322 optString, 1323 "view_cells_visualization_color_code ",1323 "view_cells_visualization_color_code=", 1324 1324 "PVS"); 1325 1325 1326 1326 RegisterOption("ViewCells.Visualization.clipPlanePos", 1327 1327 optFloat, 1328 "view_cells_visualization_clip_plane_pos ",1328 "view_cells_visualization_clip_plane_pos=", 1329 1329 "0.35"); 1330 1330 1331 1331 RegisterOption("ViewCells.Visualization.exportGeometry", 1332 1332 optBool, 1333 "view_cells_visualization_export_geometry ",1333 "view_cells_visualization_export_geometry=", 1334 1334 "false"); 1335 1335 1336 1336 RegisterOption("ViewCells.Visualization.exportRays", 1337 1337 optBool, 1338 "view_cells_visualization_export_rays ",1338 "view_cells_visualization_export_rays=", 1339 1339 "false"); 1340 1340 1341 1341 RegisterOption("ViewCells.pruneEmptyViewCells", 1342 1342 optBool, 1343 "view_cells_prune_empty _view_cells",1343 "view_cells_prune_empty=", 1344 1344 "false"); 1345 1345 1346 1346 RegisterOption("ViewCells.processOnlyValidViewCells", 1347 1347 optBool, 1348 "view_cells_process_only_valid_view_cells ",1348 "view_cells_process_only_valid_view_cells=", 1349 1349 "false"); 1350 1350 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
r706 r708 619 619 } 620 620 621 622 621 // adjust stats and reset queue one final time 623 622 mExpectedCost = realExpectedCost; … … 627 626 UpdateActiveViewCells(activeViewCells); 628 627 629 630 628 // refine view cells and reset costs 631 629 if (mRefineViewCells) … … 633 631 else 634 632 ResetMergeQueue(); 633 635 634 636 635 // create a root node if the merge was not done till root level, … … 653 652 mRoot = activeViewCells[0]; 654 653 } 655 654 656 655 //-- empty merge queue just in case 657 656 while (!mMergeQueue.empty()) … … 675 674 // assign colors for the view cells so that at least one is always consistent 676 675 AssignRandomColors(); 677 676 678 677 //TODO: should return sample contributions? 679 678 return mergeStats.merged; … … 1686 1685 1687 1686 tqueue.push(mRoot); 1687 1688 1688 mRoot->SetColor(RandomColor(0.3f, 1.0f)); 1689 1689 … … 1718 1718 1719 1719 if (maxViewCell) 1720 { 1720 1721 maxViewCell->SetColor(vc->GetColor()); 1722 } 1721 1723 1722 1724 tqueue.push(v); -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r707 r708 1223 1223 ViewCell *viewcell = *it; 1224 1224 1225 if (viewcell->GetValid()) // && mSampleEmptyViewCells) // HACK1225 if (viewcell->GetValid()) 1226 1226 { 1227 1227 // HACK … … 3164 3164 3165 3165 // check if new view cells turned invalid 3166 Debug << "setting validity, min: " << mMinPvsSize << " max: " << mMaxPvsSize << endl; 3167 cout << "setting validity, min: " << mMinPvsSize << " max: " << mMaxPvsSize << endl; 3166 3168 SetValidity(mMinPvsSize, mMaxPvsSize); 3167 3169 // update valid view space according to valid view cells 3168 mVspBspTree->ValidateTree(); 3170 if (0) 3171 mVspBspTree->ValidateTree(); 3169 3172 3170 3173 // has to be recomputed … … 3183 3186 } 3184 3187 3188 3185 3189 //-- merge the individual view cells 3186 3190 MergeViewCells(postProcessRays, objects); 3187 3191 3192 3188 3193 // only for testing 3189 3194 TestSubdivision(); … … 3763 3768 { 3764 3769 exporter->ExportPolygons(back.GetPolys()); 3765 } 3766 3770 } 3767 3771 } 3768 3772 } … … 4053 4057 vector<BspLeaf *> leaves; 4054 4058 mVspBspTree->CollectLeaves(leaves); 4059 4055 4060 mVspBspTree->CollectMergeCandidates(leaves, candidates); 4056 4061 } -
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r697 r708 3168 3168 ViewCell *viewCell; 3169 3169 3170 viewCell = mViewCellsTree->GetActiveViewCell(leaf->GetViewCell()); 3171 //viewCell = leaf->GetViewCell(); 3170 if (0) 3171 viewCell = mViewCellsTree->GetActiveViewCell(leaf->GetViewCell()); 3172 else 3173 viewCell = leaf->GetViewCell(); 3172 3174 3173 3175 if (!viewCell->Mailed())
Note: See TracChangeset
for help on using the changeset viewer.