Changeset 2021 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 01/23/07 01:06:46 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2019 r2021 2615 2615 2616 2616 2617 void 2618 ViewCellsManager::DeterminePvsObjects( 2619 VssRayContainer &rays, 2620 const bool useHitObjects) 2621 { 2622 if (!useHitObjects) { 2623 VssRayContainer::const_iterator it, it_end = rays.end(); 2624 for (it = rays.begin(); it != it_end; ++ it) { 2625 VssRay *vssRay = *it; 2626 // set only the termination object 2627 vssRay->mTerminationObject = GetIntersectable( 2628 *vssRay, 2629 true); 2630 } 2631 } 2632 } 2633 2634 2617 2635 float ViewCellsManager::ComputeSampleContribution(VssRay &ray, 2618 2636 const bool addRays, … … 2629 2647 Intersectable *terminationObj; 2630 2648 2631 if (!useHitObjects) 2632 terminationObj = GetIntersectable(ray, true); 2633 else 2634 terminationObj = ray.mTerminationObject; 2649 terminationObj = ray.mTerminationObject; 2635 2650 2636 2651 ComputeViewCellContribution(currentViewCell, … … 2716 2731 Intersectable *terminationObj; 2717 2732 2718 objTimer.Entry();2733 // objTimer.Entry(); 2719 2734 2720 2735 // obtain pvs entry (can be different from hit object) 2721 if (!useHitObjects) 2722 terminationObj = GetIntersectable(ray, true); 2723 else 2724 terminationObj = ray.mTerminationObject; 2725 2726 objTimer.Exit(); 2736 terminationObj = ray.mTerminationObject; 2737 2738 // objTimer.Exit(); 2727 2739 2728 2740 pvsTimer.Entry();
Note: See TracChangeset
for help on using the changeset viewer.