Commit 18aa9f9f authored by paps's avatar paps

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
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment