Changeset 2199 for GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp
- Timestamp:
- 03/07/07 16:26:58 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp
r2187 r2199 211 211 float r[6]; 212 212 sHalton.GetNext(6, r); 213 213 214 mPreprocessor.mViewCellsManager->GetViewPoint(origin, Vector3(r[0], 214 215 r[1], … … 219 220 r[5]) 220 221 ) - origin; 221 //cout << "z";222 222 223 const float c = Magnitude(direction); 223 224 … … 478 479 int i; 479 480 // pickup a distribution 480 for (i=0; i < mDistributions.size()-1; i++)481 for (i=0; i < (int)mDistributions.size()-1; i++) 481 482 if (r < mDistributions[i]->mRatio) 482 483 break; 483 484 484 485 bool result = mDistributions[i]->GenerateSample(ray); 485 486 … … 632 633 } else 633 634 if (strcmp(curr, "spatial")==0) { 635 Debug << "here4 spatialbox" << endl; 634 636 mDistributions.push_back(new SpatialBoxBasedDistribution(mPreprocessor)); 635 637 } else
Note: See TracChangeset
for help on using the changeset viewer.