Skip to content

Commit 63c7915

Browse files
Copilotmicycle1
andcommitted
fix: align BuildPath tiny-triangle check with upstream
Co-authored-by: micycle1 <9304234+micycle1@users.noreply.github.com>
1 parent cce8054 commit 63c7915

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/clipper2/engine/ClipperBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2793,7 +2793,7 @@ public static boolean BuildPath(@Nullable OutPt op, boolean reverse, boolean isO
27932793
}
27942794
}
27952795

2796-
if (path.size() == 3 && IsVerySmallTriangle(op2)) {
2796+
if (path.size() == 3 && !isOpen && IsVerySmallTriangle(op2)) {
27972797
return false;
27982798
} else {
27992799
return true;

0 commit comments

Comments
 (0)