Skip to content

fix: verify pk/qk sides in get_turn_info - #1507

Open
barendgehrels wants to merge 1 commit into
developfrom
fix/issue_1506
Open

barendgehrels wants to merge 1 commit into
developfrom
fix/issue_1506

Conversation

@barendgehrels

@barendgehrels barendgehrels commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #1506

In touch::apply, the side_qi_p1 and side_qk_p1 were verified, but side_pk_p and side_qk_q were not.

For a nearly collinear vertex, the same triangle could then be classified as collinear in one variable and as left/right in another, depending on the argument order. This made union(b, a) of two polygons sharing an edge return an empty result.

Running the robustness tests for overlay and buffer found that the same fix also fixes 8 cases more (of 945472), and there were no regressions.

Three distinct cases are added to the unit test, and the issue_1506 itself is set to the set operation unit test.

✅ finding the cause was AI assisted, Claude opus 5.5

A second commit adds release notes for this issue and the recently fixed issues that I merged today

@tinko92 tinko92 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change is fine with the current robustness approach of refinement and double checks. I believe my proposed changes in #1520 will obsolete this (in which case these added calls will be unnecessary performance cost) and hope to get a discussion about the generally robust approach going before the next release.

@barendgehrels

Copy link
Copy Markdown
Collaborator Author

Rebased it fails on one case, will check later.

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.

union_ of two valid polygons sharing an edge returns empty (argument order dependent)

2 participants