Commit 18aa9f9f authored by paps's avatar paps
Browse files

Correction d'un probleme d'intersection, renvoyant faux au lieu de vrai, sur...

Correction d'un probleme d'intersection, renvoyant faux au lieu de vrai, sur une face dans la grille reguliere 
parent 7741dabb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -300,7 +300,7 @@ bool LrBinderRegularGrid::getIntersection(const LrRay &ray, LrHit *hit, Real min

    } else if (dir.z < -EPSILON) {

        Real distExitTMP = (min.z - orig.z + EPSILON)/dir.z;
        Real distExitTMP = ((min.z - orig.z) + EPSILON)/dir.z;

        if (distExitTMP < distExit) {
            distExit = distExitTMP;
@@ -327,7 +327,7 @@ bool LrBinderRegularGrid::getIntersection(const LrRay &ray, LrHit *hit, Real min
        return false;
    }

    if (distExit < distEntry) {
    if (distExit+EPSILON < distEntry-EPSILON) {
        return false;
    }