Ignore:
Timestamp:
01/12/07 22:41:01 (18 years ago)
Author:
mattausch
Message:

implemented improved ray casting

File:
1 edited

Legend:

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

    r1964 r1972  
    192192} 
    193193 
    194 void InternalRayCaster::CastRays16(const int index, 
    195                                                                    SimpleRayContainer &rays,  
     194 
     195void InternalRayCaster::CastRays16(SimpleRayContainer &rays,  
    196196                                                                   VssRayContainer &vssRays, 
    197197                                                                   const AxisAlignedBox3 &sbox, 
     
    199199                                                                   const bool pruneInvalidRays) 
    200200{ 
    201         const int num = 16; 
    202  
    203201#if DEBUG_RAYCAST 
    204202        Debug << "C16 " << flush; 
    205203#endif 
    206204 
     205        SimpleRayContainer::const_iterator sit, sit_end = rays.end(); 
     206 
    207207        // no acceleration for ray bundles implemented right now 
    208         for (int i = index; i < index + num; i++)  
     208        for (sit = rays.begin(); sit != sit_end; ++ sit)  
    209209        { 
    210                 CastRay(rays[i], vssRays, sbox, castDoubleRays, pruneInvalidRays); 
     210                CastRay(*sit, vssRays, sbox, castDoubleRays, pruneInvalidRays); 
    211211        } 
    212212 
Note: See TracChangeset for help on using the changeset viewer.