Changeset 871 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 05/02/06 11:14:52 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r870 r871 127 127 environment->GetBoolValue("Preprocessor.computeVisibility", mComputeVisibility); 128 128 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 130 136 Debug << "detect empty view space=" << mDetectEmptyViewSpace << endl; 131 137 Debug << "load polygons as meshes: " << mLoadPolygonsAsMeshes << endl; … … 255 261 Preprocessor::ExportPreprocessedData(const string filename) 256 262 { 257 return false; 258 } 263 264 mViewCellsManager->ExportViewCells(filename, 265 true); 266 267 return true; 268 } 269 270 bool 271 Preprocessor::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 259 289 260 290 bool
Note: See TracChangeset
for help on using the changeset viewer.