Ignore:
Timestamp:
09/25/06 18:54:21 (18 years ago)
Author:
mattausch
Message:

worked on guided visibility sampling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp

    r1421 r1486  
    327327Preprocessor::ExportPreprocessedData(const string filename) 
    328328{ 
    329    
    330   mViewCellsManager->ExportViewCells(filename, true, mObjects); 
    331    
    332   return true; 
    333 } 
     329        mViewCellsManager->ExportViewCells(filename, true, mObjects); 
     330        return true; 
     331} 
     332 
    334333 
    335334bool 
     
    352351  // export the preprocessed information to a file 
    353352  if (mExportVisibility) 
    354         ExportPreprocessedData(mVisibilityFileName); 
    355    
     353  { 
     354          ExportPreprocessedData(mVisibilityFileName); 
     355  } 
     356 
    356357  return true; 
    357358} 
     
    445446        } 
    446447         
    447         //-- parameters for render heuristics evaluation 
     448        //////// 
     449        //-- render heuristics evaluation 
    448450        float objRenderCost = 0, vcOverhead = 0, moveSpeed = 0; 
    449451 
     
    472474 
    473475   
    474 bool 
    475 Preprocessor::ConstructViewCells() 
    476 { 
    477   // if not already loaded, construct view cells from file 
    478   if (!mLoadViewCells) { 
    479         mViewCellsManager->SetViewSpaceBox(mKdTree->GetBox()); 
     476bool Preprocessor::ConstructViewCells(const AxisAlignedBox3 &viewSpaceBox) 
     477{ 
     478        mViewCellsManager->SetViewSpaceBox(viewSpaceBox); 
    480479         
    481480        // construct view cells using it's own set of samples 
    482481        mViewCellsManager->Construct(this); 
    483          
    484         //-- several visualizations and statistics 
    485         Debug << "view cells construction finished: " << endl; 
     482 
     483        // visualizations and statistics 
     484        Debug << "finished view cells:" << endl; 
    486485        mViewCellsManager->PrintStatistics(Debug); 
    487   } 
    488   return true; 
     486             
     487        return true; 
    489488} 
    490489 
Note: See TracChangeset for help on using the changeset viewer.