Changeset 431 for trunk/VUT/GtpVisibilityPreprocessor/src
- Timestamp:
- 11/25/05 07:59:50 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VssRay.h
r430 r431 56 56 mTerminationObject(terminationObject), 57 57 mRefCount(0), 58 mFlags(0) 58 mFlags(0), 59 mT(1.0f) 59 60 { 60 61 Precompute(); … … 65 66 mFlags(0), 66 67 mMailbox(-1), 67 mOriginObject(ray.sourceObject.mObject) 68 mOriginObject(ray.sourceObject.mObject), 69 mT(1.0f) 68 70 { 69 71 if (ray.sourceObject.mObject) … … 76 78 if (!ray.intersections.empty()) 77 79 { 78 mT = ray.intersections[0].mT; 79 mTermination = ray.Extrap(mT); 80 mTermination = ray.Extrap(ray.intersections[0].mT); 80 81 mTerminationObject = ray.intersections[0].mObject; 81 82 } 82 83 else 83 84 { 84 mT = 1e6;//Limits::Infinity; 85 mTermination = mOrigin + ray.GetDir() * mT; 85 mTermination = ray.Extrap(1e6);//TODO: should be Limits::Infinity 86 86 mTerminationObject = NULL; 87 87 } -
trunk/VUT/GtpVisibilityPreprocessor/src/VssTree.cpp
r430 r431 538 538 Intersectable::NewMail(3); 539 539 540 Debug << "evaluating cost ratio: " << leaf->rays.size() << endl; 540 541 if (axis <= VssTreeNode::SPLIT_Z) { 541 542 // this is the main ray classification loop! … … 544 545 ri++) 545 546 if ((*ri).mRay->IsActive()) { 546 547 //Debug << "new t: " << (*ri).mRay->mT << endl; 547 548 // determine the side of this ray with respect to the plane 548 549 int side = (*ri).ComputeRayIntersection(axis, position, (*ri).mRay->mT);
Note: See TracChangeset
for help on using the changeset viewer.