Skip to content

Fix issue 1075 where triangulation fails on a simple polygon#1077

Open
baobaotuo wants to merge 1 commit intoAngusJohnson:mainfrom
baobaotuo:lliu/fix_issue_1075_triangulation_failure
Open

Fix issue 1075 where triangulation fails on a simple polygon#1077
baobaotuo wants to merge 1 commit intoAngusJohnson:mainfrom
baobaotuo:lliu/fix_issue_1075_triangulation_failure

Conversation

@baobaotuo
Copy link

@baobaotuo baobaotuo commented Mar 17, 2026

With the help from Claude, this pull request fixes a bug in triangulation reported in 1075.

The issue is that the same vPrev can be pushed more than once in locMinStack.push(vPrev) and cause problem.

I asked the claude to reason about any potential infinite loop issue with the fix.

I didn't find any unit test for Triangulate in clipper2.

I ran Triangulation example and got this picture back.
Screenshot 2026-03-17 at 11 34 10 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant