Strictly less than instead of less than equals in

RayTriangleIntersection
This commit is contained in:
Paolo Cignoni 2009-03-25 08:27:58 +00:00
parent cf028b728b
commit 4420e5102b
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ bool IntersectionRayTriangle( const Ray3<T> & ray, const Point3<T> & vert0,
Line3<T> 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;
}