This commit is contained in:
x.ZM
2018-11-10 15:01:27 +01:00
parent de180a073f
commit 116d2bc1de
+3 -3
View File
@@ -32,7 +32,7 @@ IGL_INLINE bool igl::segments_intersect(
// (r x s) ~ 0 --> directions are parallel, they will never cross
Eigen::RowVector3d rxs = r.cross(s);
if (rxs.norm() <= eps)
return false;
return false;
int sign;
@@ -54,10 +54,10 @@ IGL_INLINE bool igl::segments_intersect(
a_u = u;
if ((u - 1.) > eps || u < -eps)
return false;
return false;
if ((t - 1.) > eps || t < -eps)
return false;
return false;
return true;
};