Ignore:
Timestamp:
05/02/06 11:14:52 (18 years ago)
Author:
bittner
Message:

RenderSampler?

File:
1 edited

Legend:

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

    r870 r871  
    127127        environment->GetBoolValue("Preprocessor.computeVisibility", mComputeVisibility); 
    128128        environment->GetBoolValue("Preprocessor.detectEmptyViewSpace", mDetectEmptyViewSpace); 
    129  
     129        environment->GetBoolValue("Preprocessor.exportVisibility", mExportVisibility ); 
     130 
     131        char buffer[256]; 
     132        environment->GetStringValue("Preprocessor.visibilityFile",  buffer); 
     133        mVisibilityFileName = buffer; 
     134        environment->GetBoolValue("Preprocessor.visibilityFile", mApplyVisibilityFilter ); 
     135         
    130136        Debug << "detect empty view space=" << mDetectEmptyViewSpace << endl; 
    131137        Debug << "load polygons as meshes: " << mLoadPolygonsAsMeshes << endl; 
     
    255261Preprocessor::ExportPreprocessedData(const string filename) 
    256262{ 
    257   return false; 
    258 } 
     263   
     264  mViewCellsManager->ExportViewCells(filename, 
     265                                                                         true); 
     266   
     267  return true; 
     268} 
     269 
     270bool 
     271Preprocessor::PostProcessVisibility() 
     272{ 
     273   
     274  if (mApplyVisibilityFilter) { 
     275        cout<<"Applying visibility filter..."; 
     276        mViewCellsManager->ApplyFilter(mKdTree, 
     277                                                                   0.05f, 
     278                                                                   0.05f); 
     279        cout<<"done."; 
     280  } 
     281   
     282  // export the preprocessed information to a file 
     283  if (mExportVisibility) 
     284        ExportPreprocessedData(mVisibilityFileName); 
     285   
     286  return true; 
     287} 
     288 
    259289 
    260290bool 
Note: See TracChangeset for help on using the changeset viewer.