Changeset 1106 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 07/10/06 01:57:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1077 r1106 4810 4810 mHierarchyManager = new HierarchyManager(*vspTree, *ospTree); 4811 4811 Environment::GetSingleton()->GetIntValue("VspTree.Construction.samples", mInitialSamples); 4812 4812 4813 mVspTree->SetViewCellsManager(this); 4814 mOspTree->SetViewCellsManager(this); 4815 4813 4816 mVspTree->mViewCellsTree = mViewCellsTree; 4814 4817 } … … 4881 4884 long startTime; 4882 4885 4883 mHierarchyManager->Construct (constructionRays, objects, &mViewSpaceBox);4886 mHierarchyManager->Construct2(constructionRays, objects, &mViewSpaceBox); 4884 4887 4885 4888 … … 5229 5232 GetRaySets(sampleRays, mVisualizationSamples, visRays); 5230 5233 5231 //-- export final view cells5232 5233 5234 if (1) 5234 5235 { 5236 //-- export final view cells 5237 5235 5238 // hack pvs 5236 5239 const int savedColorCode = mColorCode; … … 5266 5269 // HACK: export without clip plane 5267 5270 const bool b = mUseClipPlaneForViz; 5268 if (0) 5269 mUseClipPlaneForViz = false; 5271 if (0) mUseClipPlaneForViz = false; 5270 5272 5271 5273 ExportViewCellsForViz(exporter); … … 5278 5280 5279 5281 mColorCode = savedColorCode; 5282 } 5283 5284 if (1) 5285 { 5286 //-- export final object partition 5287 Exporter *exporter = Exporter::GetExporter("final_object_partition.wrl"); 5288 5289 if (exporter) 5290 { 5291 cout << "exporting object space partition ... "; 5292 5293 if (mExportGeometry) 5294 { 5295 exporter->ExportGeometry(objects); 5296 } 5297 5298 // export rays 5299 if (0 && mExportRays) 5300 { 5301 exporter->ExportRays(visRays, RgbColor(0, 1, 0)); 5302 } 5303 5304 exporter->SetWireframe(); 5305 exporter->ExportOspTree(*mOspTree); 5306 5307 delete exporter; 5308 5309 cout << "finished" << endl; 5310 } 5280 5311 } 5281 5312
Note: See TracChangeset
for help on using the changeset viewer.