Changeset 463 for trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
- Timestamp:
- 12/14/05 09:02:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
r462 r463 862 862 863 863 VssRay *ray = rayInf.mRay; 864 const int cf = rayInf.ComputeRayIntersection(candidatePlane, ray->mT); 864 float t; 865 const int cf = rayInf.ComputeRayIntersection(candidatePlane, t); 865 866 866 867 if (mSplitPlaneStrategy & LEAST_RAY_SPLITS) … … 907 908 { 908 909 float newLen = len * 909 (rayInf.GetMaxT() - rayInf.mRay->mT) /910 (rayInf.GetMaxT() - t) / 910 911 (rayInf.GetMaxT() - rayInf.GetMinT()); 911 912 … … 1305 1306 1306 1307 rays.pop_back(); 1307 1308 float t; 1308 1309 // get classification and receive new t 1309 const int cf = bRay.ComputeRayIntersection(plane, ray->mT);1310 const int cf = bRay.ComputeRayIntersection(plane, t); 1310 1311 1311 1312 switch (cf) … … 1323 1324 if (plane.Side(bRay.ExtrapOrigin()) <= 0) 1324 1325 { 1325 backRays.push_back(RayInfo(ray, bRay.GetMinT(), ray->mT));1326 frontRays.push_back(RayInfo(ray, ray->mT, bRay.GetMaxT()));1326 backRays.push_back(RayInfo(ray, bRay.GetMinT(), t)); 1327 frontRays.push_back(RayInfo(ray, t, bRay.GetMaxT())); 1327 1328 } 1328 1329 else 1329 1330 { 1330 frontRays.push_back(RayInfo(ray, bRay.GetMinT(), ray->mT));1331 backRays.push_back(RayInfo(ray, ray->mT, bRay.GetMaxT()));1331 frontRays.push_back(RayInfo(ray, bRay.GetMinT(), t)); 1332 backRays.push_back(RayInfo(ray, t, bRay.GetMaxT())); 1332 1333 } 1333 1334 break;
Note: See TracChangeset
for help on using the changeset viewer.