Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/issue #1326 and #1226 #1341

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

barendgehrels
Copy link
Collaborator

@barendgehrels barendgehrels commented Nov 14, 2024

This could occur in a sequence of touch and then touch_interior.
This PR fixes #1226 and #1326

@barendgehrels barendgehrels self-assigned this Nov 14, 2024
@barendgehrels barendgehrels force-pushed the fix/issue-1326-and-1226 branch 2 times, most recently from 7824944 to c4b7e4d Compare November 14, 2024 21:20
TurnBySegmentMap const& start_turns_by_segment,
Geometry0 const& geometry0,
Geometry1 const& geometry1)
{
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This function is not new, but it is extracted from the original method below

void discard_touch_touch_interior_turns(Turns& turns,
Geometry0 const& geometry0,
Geometry1 const& geometry1)
{
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the fix

This can occur in a sequence of touch and then touch_interior
@@ -19,6 +19,20 @@

[section:release_notes Release Notes]

[/=================]
[heading Boost 1.87]
[/=================]
Copy link
Collaborator Author

@barendgehrels barendgehrels Nov 14, 2024

Choose a reason for hiding this comment

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

If it does not make it in 1.87, we'll update

ut_settings settings;
settings.set_test_validity(false);
settings.validity_of_sym = false;
TEST_DIFFERENCE_WITH(issue_1226, 1, 0.238037722, 0, 0.0, 1, settings);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Somehow they are reported as invalid.
While (I test in overlay.cpp) in the original test code, they were valid.
I don't know the reason, it might be a false negative or a ccw issue

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_ returns invalid polygon
1 participant