diff options
author | Sven Göthel <[email protected]> | 2024-02-14 20:20:19 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-02-14 20:20:19 +0100 |
commit | 5488665474cc7b88577cedfca6416784f0fda3ba (patch) | |
tree | 28998a9afcf749b2b6f6970d6766f6d7b1af5d7f /src/jogl/classes/com/jogamp/graph/curve | |
parent | 122297fb52849db477f4b85d83fb53c0af633903 (diff) |
VectorUtil: Generalize *seg2segIntersection* w/ epsilon and doCollinear
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/curve')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java index 18e7328ce..25791e17d 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java +++ b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java @@ -921,9 +921,9 @@ public final class OutlineShape implements Comparable<OutlineShape> { tmpV1, tmpV2, tmpV3) ) { return current; } - if(VectorUtil.testTri2SegIntersection(a, b, c, prevV, current) || - VectorUtil.testTri2SegIntersection(a, b, c, current, nextV) || - VectorUtil.testTri2SegIntersection(a, b, c, prevV, nextV) ) { + if(VectorUtil.testTri2SegIntersection(a, b, c, prevV, current, FloatUtil.EPSILON, false) || + VectorUtil.testTri2SegIntersection(a, b, c, current, nextV, FloatUtil.EPSILON, false) || + VectorUtil.testTri2SegIntersection(a, b, c, prevV, nextV, FloatUtil.EPSILON, false) ) { return current; } } |