Changeset 1486 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 09/25/06 18:54:21 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1421 r1486 327 327 Preprocessor::ExportPreprocessedData(const string filename) 328 328 { 329 330 mViewCellsManager->ExportViewCells(filename, true, mObjects); 331 332 return true; 333 } 329 mViewCellsManager->ExportViewCells(filename, true, mObjects); 330 return true; 331 } 332 334 333 335 334 bool … … 352 351 // export the preprocessed information to a file 353 352 if (mExportVisibility) 354 ExportPreprocessedData(mVisibilityFileName); 355 353 { 354 ExportPreprocessedData(mVisibilityFileName); 355 } 356 356 357 return true; 357 358 } … … 445 446 } 446 447 447 //-- parameters for render heuristics evaluation 448 //////// 449 //-- render heuristics evaluation 448 450 float objRenderCost = 0, vcOverhead = 0, moveSpeed = 0; 449 451 … … 472 474 473 475 474 bool 475 Preprocessor::ConstructViewCells() 476 { 477 // if not already loaded, construct view cells from file 478 if (!mLoadViewCells) { 479 mViewCellsManager->SetViewSpaceBox(mKdTree->GetBox()); 476 bool Preprocessor::ConstructViewCells(const AxisAlignedBox3 &viewSpaceBox) 477 { 478 mViewCellsManager->SetViewSpaceBox(viewSpaceBox); 480 479 481 480 // construct view cells using it's own set of samples 482 481 mViewCellsManager->Construct(this); 483 484 // -- severalvisualizations and statistics485 Debug << " view cells construction finished:" << endl;482 483 // visualizations and statistics 484 Debug << "finished view cells:" << endl; 486 485 mViewCellsManager->PrintStatistics(Debug); 487 } 488 486 487 return true; 489 488 } 490 489
Note: See TracChangeset
for help on using the changeset viewer.