From 4420e5102bf8c4a2749fe4147781cf981579b307 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Wed, 25 Mar 2009 08:27:58 +0000 Subject: [PATCH] Strictly less than instead of less than equals in RayTriangleIntersection --- vcg/space/intersection3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/space/intersection3.h b/vcg/space/intersection3.h index 1d73af92..c4ba754c 100644 --- a/vcg/space/intersection3.h +++ b/vcg/space/intersection3.h @@ -515,7 +515,7 @@ bool IntersectionRayTriangle( const Ray3 & ray, const Point3 & vert0, Line3 line(ray.Origin(), ray.Direction()); if (IntersectionLineTriangle(line, vert0, vert1, vert2, t, u, v)) { - if (t <= 0) return 0; + if (t < 0) return 0; else return 1; }else return 0; }