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; }