Commit c90c25f1 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'master' into restructure_ObjectTypes

parents 180d65fa a2ffb8d2
......@@ -1337,8 +1337,10 @@ triangleIntersection( const Vec& _o,
//if determinant is near zero, the ray lies in plane of triangle
det = edge1 | pvec;
if (det > -0.000001 && det < 0.000001)
static const typename Vec::value_type EPSILON = std::numeric_limits<typename Vec::value_type>::epsilon() * 1e2;
if (det > -EPSILON && det < EPSILON) {
return false;
}
inv_det = typename Vec::value_type(1.0) / det;
//calculate distance from vert0 to ray origin
......
OpenMesh @ 00a95438
Subproject commit 46c877951bdc71339ff3b6b5aed7cda4851f4a28
Subproject commit 00a95438f7c1b15a9a244bb3a45428a13f09a7f8
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