Changeset 2736 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 06/04/08 11:13:41 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r2729 r2736 1328 1328 const SimpleRay &mainRay, 1329 1329 int number, 1330 int pertubType) const 1331 { 1332 //rayBundle.push_back(mainRay); 1333 //const float pertubOrigin = 0.0f; 1334 const float pertubDir = 0.01f; 1330 int pertubType, 1331 float scale) const 1332 { 1335 1333 Vector3 pertub; 1336 1334 1337 1335 for (int i = 0; i < number; ++ i) 1338 1336 { 1339 pertub.x = RandomValue(- pertubDir, pertubDir);1340 pertub.y = RandomValue(- pertubDir, pertubDir);1341 pertub.z = RandomValue(- pertubDir, pertubDir);1337 pertub.x = RandomValue(-scale, scale); 1338 pertub.y = RandomValue(-scale, scale); 1339 pertub.z = RandomValue(-scale, scale); 1342 1340 1343 1341 Vector3 newDir = mainRay.mDirection + pertub;
Note: See TracChangeset
for help on using the changeset viewer.