Ignore:
Timestamp:
01/23/07 01:06:46 (17 years ago)
Author:
bittner
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2019 r2021  
    26152615 
    26162616 
     2617void 
     2618ViewCellsManager::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 
    26172635float ViewCellsManager::ComputeSampleContribution(VssRay &ray, 
    26182636                                                                                                  const bool addRays, 
     
    26292647        Intersectable *terminationObj; 
    26302648 
    2631         if (!useHitObjects) 
    2632                 terminationObj = GetIntersectable(ray, true); 
    2633         else 
    2634                 terminationObj = ray.mTerminationObject; 
     2649        terminationObj = ray.mTerminationObject; 
    26352650 
    26362651        ComputeViewCellContribution(currentViewCell,  
     
    27162731        Intersectable *terminationObj; 
    27172732         
    2718         objTimer.Entry(); 
     2733        //      objTimer.Entry(); 
    27192734 
    27202735        // 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(); 
    27272739         
    27282740        pvsTimer.Entry(); 
Note: See TracChangeset for help on using the changeset viewer.