Changeset 1883 for GTP/trunk/Lib/Vis/Preprocessing/src/VssPreprocessor.cpp
- Timestamp:
- 12/12/06 17:25:53 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VssPreprocessor.cpp
r1771 r1883 15 15 #include "Intersectable.h" 16 16 #include "RayCaster.h" 17 #include "SamplingStrategy.h" 17 18 18 19 … … 422 423 const Vector3 direction = GetDirection(viewpoint, &mViewCellsManager->GetViewSpaceBox()); 423 424 424 const SimpleRay sray(viewpoint, direction); 425 sampleContributions = mRayCaster->CastRay(sray, mVssRays, mViewCellsManager->GetViewSpaceBox(), true); 425 const SimpleRay sray(viewpoint, direction, 426 SamplingStrategy::DIRECTION_BOX_BASED_DISTRIBUTION, 427 1.0f); 428 sampleContributions = mRayCaster->CastRay(sray, 429 mVssRays, 430 mViewCellsManager->GetViewSpaceBox(), 431 true); 426 432 427 433 if (sampleContributions) { … … 545 551 mViewCellsManager->GetViewPoint(viewpoint); 546 552 Vector3 direction = GetDirection(viewpoint, NULL); 547 rays.push_back(SimpleRay(viewpoint, direction)); 553 rays.push_back(SimpleRay(viewpoint, direction, 554 SamplingStrategy::DIRECTION_BOX_BASED_DISTRIBUTION, 555 1.0f) 556 ); 548 557 } 549 558 } else {
Note: See TracChangeset
for help on using the changeset viewer.