Changeset 422 for trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.h
- Timestamp:
- 11/18/05 16:29:31 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.h
r411 r422 61 61 } 62 62 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()), 66 65 mOriginObject(ray.sourceObject.mObject), 67 mTerminationObject(ray.intersections[0].mObject),68 66 mRefCount(0), 69 67 mFlags(0), 70 68 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 } 72 81 73 82 void Precompute() {
Note: See TracChangeset
for help on using the changeset viewer.