Changeset 1898 for GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp
- Timestamp:
- 12/15/06 17:29:45 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp
r1891 r1898 9 9 namespace GtpVisibilityPreprocessor { 10 10 11 HaltonSequence SamplingStrategy::sHalton; 11 12 12 13 SamplingStrategy::SamplingStrategy(Preprocessor &preprocessor): … … 73 74 74 75 float r[5]; 75 mHalton.GetNext(5, r);76 sHalton.GetNext(5, r); 76 77 77 78 mPreprocessor.mViewCellsManager->GetViewPoint(origin, … … 81 82 Vector3 point, normal; 82 83 83 r[0] *= mPreprocessor.mObjects.size()-1;84 r[0] *= (float)mPreprocessor.mObjects.size() - 1; 84 85 const int i = (int)r[0]; 85 86 … … 115 116 116 117 float r[4]; 117 mHalton.GetNext(4, r);118 sHalton.GetNext(4, r); 118 119 119 120 r[0] *= mPreprocessor.mObjects.size()-1; … … 191 192 192 193 float r[6]; 193 mHalton.GetNext(6, r);194 sHalton.GetNext(6, r); 194 195 mPreprocessor.mViewCellsManager->GetViewPoint(origin, Vector3(r[0],r[1],r[2])); 195 196 … … 415 416 for (i=0; i < tries; i++) { 416 417 float r[4]; 417 mHalton.GetNext(4, r);418 sHalton.GetNext(4, r); 418 419 419 420 origin = center + (radius*UniformRandomVector(r[0], r[1])); … … 487 488 { 488 489 float r; 489 mHalton.GetNext(1, &r);490 sHalton.GetNext(1, &r); 490 491 491 492 // pickup a distribution
Note: See TracChangeset
for help on using the changeset viewer.