Ignore:
Timestamp:
12/14/05 09:02:38 (19 years ago)
Author:
bittner
Message:

removed mT from vss ray

File:
1 edited

Legend:

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

    r462 r463  
    862862 
    863863                VssRay *ray = rayInf.mRay; 
    864                 const int cf = rayInf.ComputeRayIntersection(candidatePlane, ray->mT); 
     864                float t; 
     865                const int cf = rayInf.ComputeRayIntersection(candidatePlane, t); 
    865866 
    866867                if (mSplitPlaneStrategy & LEAST_RAY_SPLITS) 
     
    907908                                        { 
    908909                                                float newLen = len *  
    909                                                         (rayInf.GetMaxT() - rayInf.mRay->mT) /  
     910                                                        (rayInf.GetMaxT() - t) /  
    910911                                                        (rayInf.GetMaxT() - rayInf.GetMinT()); 
    911912                 
     
    13051306 
    13061307                rays.pop_back(); 
    1307          
     1308                float t; 
    13081309                // get classification and receive new t 
    1309                 const int cf = bRay.ComputeRayIntersection(plane, ray->mT); 
     1310                const int cf = bRay.ComputeRayIntersection(plane, t); 
    13101311 
    13111312                switch (cf) 
     
    13231324                        if (plane.Side(bRay.ExtrapOrigin()) <= 0) 
    13241325                        {        
    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())); 
    13271328                        } 
    13281329                        else 
    13291330                        { 
    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())); 
    13321333                        } 
    13331334                        break; 
Note: See TracChangeset for help on using the changeset viewer.