Ignore:
Timestamp:
11/18/05 16:29:31 (19 years ago)
Author:
mattausch
Message:

worded on vspkdtree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.h

    r411 r422  
    6161  } 
    6262         
    63         VssRay(const Ray &ray) 
    64                 :mOrigin(ray.GetLoc()),  
    65                 mTermination(ray.Extrap(ray.intersections[0].mT)), 
     63        VssRay(const Ray &ray): 
     64                mOrigin(ray.GetLoc()),  
    6665                mOriginObject(ray.sourceObject.mObject), 
    67                 mTerminationObject(ray.intersections[0].mObject), 
    6866                mRefCount(0), 
    6967                mFlags(0), 
    7068                mMailbox(-1) 
    71         {} 
     69        { 
     70                if (!ray.intersections.empty()) 
     71                { 
     72                        mTermination = ray.intersections[0].mT; 
     73                        mTerminationObject = ray.intersections[0].mObject; 
     74                } 
     75                else 
     76                { 
     77                        mTermination = Limits::Infinity; 
     78                        mTerminationObject = NULL; 
     79                } 
     80        } 
    7281 
    7382  void Precompute() { 
Note: See TracChangeset for help on using the changeset viewer.