Ignore:
Timestamp:
12/05/05 04:42:54 (19 years ago)
Author:
mattausch
Message:

fixed bug in VspBspTree?
view cells in VssPreprocessor?
bounding rays for vspkdtree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Ray.cpp

    r444 r448  
    225225mType(LOCAL_RAY) 
    226226{ 
    227         const float dist = Distance(vssRay.mTermination, vssRay.mOrigin); 
    228  
    229         if (dist) 
    230                 dir = vssRay.GetDir() / dist; 
     227        float len = vssRay.Length(); 
     228 
     229        if (!len) 
     230                len = Limits::Small; 
     231 
     232        dir = vssRay.GetDir() / len; 
    231233 
    232234        if (vssRay.mTerminationObject) 
    233                 intersections.push_back(Intersection(dist, vssRay.mTerminationObject, 0)); 
     235                intersections.push_back(Intersection(len, vssRay.mTerminationObject, 0)); 
    234236 
    235237        Precompute(); 
Note: See TracChangeset for help on using the changeset viewer.