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 CCW and isolated turns #1263

Merged
merged 1 commit into from
Apr 1, 2024
Merged

Conversation

vissarion
Copy link
Member

Fixes issues #1231, #1244 (and a few more test cases). I want to target 1.85 if possible.

@vissarion vissarion added this to the 1.85 milestone Mar 26, 2024

constexpr auto order2 = geometry::point_order<Geometry2>::value;
constexpr bool reverse2 = (order2 == boost::geometry::counterclockwise)
? ! Reverse2 : Reverse2;
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 great fix, thanks a lot

ut_settings settings;
settings.set_test_validity(! is_ccw);
settings.set_test_validity(true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This works - but you can also remove the settings and just call TEST_INTERSECTION (here and below)

@vissarion vissarion force-pushed the fix/invalid_setops branch from 006b009 to c02a8f6 Compare March 27, 2024 09:45
@vissarion vissarion merged commit e949427 into boostorg:develop Apr 1, 2024
23 checks passed
@vissarion vissarion deleted the fix/invalid_setops branch April 1, 2024 09:56
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.

2 participants