Changeset 722 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 03/31/06 20:31:55 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
r712 r722 1279 1279 "8000000"); 1280 1280 1281 RegisterOption("ViewCells.Evaluation.samplingType", 1282 optString, 1283 "view_cells_evaluation_sampling_type=", 1284 "box"); 1285 1281 1286 RegisterOption("ViewCells.Evaluation.samplesPerPass", 1282 1287 optInt, -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r720 r722 97 97 98 98 if (strcmp(buf, "box") == 0) 99 { 99 100 mSamplingType = Preprocessor::SPATIAL_BOX_BASED_DISTRIBUTION; 101 } 100 102 else if (strcmp(buf, "directional") == 0) 103 { 101 104 mSamplingType = Preprocessor::DIRECTION_BASED_DISTRIBUTION; 105 } 102 106 else 103 107 { … … 106 110 } 107 111 108 environment->GetStringValue("ViewCells.Visualization.colorCode", buf); 112 environment->GetStringValue("ViewCells.Evaluation.samplingType", buf); 113 114 if (strcmp(buf, "box") == 0) 115 { 116 mEvaluationSamplingType = Preprocessor::SPATIAL_BOX_BASED_DISTRIBUTION; 117 } 118 else if (strcmp(buf, "directional") == 0) 119 { 120 mEvaluationSamplingType = Preprocessor::DIRECTION_BASED_DISTRIBUTION; 121 } 122 else 123 { 124 Debug << "error! wrong sampling type" << endl; 125 exit(0); 126 } 127 128 environment->GetStringValue("ViewCells.Visualization.colorCode", buf); 109 129 110 130 if (strcmp(buf, "PVS") == 0) … … 492 512 //VssRayContainer outRays; 493 513 // should directional sampling be used? 494 bool dirSamples = mSamplingType == Preprocessor::DIRECTION_BASED_DISTRIBUTION;514 bool dirSamples = (mEvaluationSamplingType == Preprocessor::DIRECTION_BASED_DISTRIBUTION); 495 515 496 516 cout << "Evaluating view cell partition" << endl; … … 521 541 VssRayContainer evaluationSamples; 522 542 523 const int samplingType = m SamplingType;543 const int samplingType = mEvaluationSamplingType; 524 544 /* dirSamples ? 525 545 Preprocessor::DIRECTION_BASED_DISTRIBUTION : -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r720 r722 549 549 550 550 int mSamplingType; 551 int mEvaluationSamplingType; 551 552 int mNumActiveViewCells; 552 553 bool mCompressViewCells;
Note: See TracChangeset
for help on using the changeset viewer.