diff options
author | Sven Gothel <[email protected]> | 2023-04-18 05:27:42 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-04-18 05:27:42 +0200 |
commit | 84ef03374eb1ebef08c2bd5c764a45f9ad21cec1 (patch) | |
tree | 50563e656b333a831ba5e49c44497a42075375db /src | |
parent | f4bf997e5d9efcf299ef871030e7faf58f5b0289 (diff) |
Graph OutlineShape.checkOverlaps(): Test overlap first to drop overlaps.contains(..) test
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java index 30987ec7e..20eaca236 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java +++ b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java @@ -814,7 +814,7 @@ public final class OutlineShape implements Comparable<OutlineShape> { } else { overlap = null; } - if( overlaps.contains(currentVertex) || overlap != null ) { + if( null != overlap || overlaps.contains(currentVertex) ) { overlaps.remove(currentVertex); subdivideTriangle(outline, prevV, currentVertex, nextV, i); |