Skip to content

Conversation

@barendgehrels
Copy link
Collaborator

This PR handles, in rare cases, collinear as if it was equal, because the arriving segment arrives at the intersection point in the same way as it is in equal (but at an undetectable distance).

In terms of statistics this reduces the error count from 444 to 241 (in recursive_polygons_buffer)

There are several tests added, some of them are fixed by this test, some remain to be fixed but it's more convenient to have them in this PR already.

There is also a bit cleanup in get_turn_info in the same way I added the new code.

Copy link
Member

@vissarion vissarion left a comment

Choose a reason for hiding this comment

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

Looks ok to me, thanks!

return false;
}

auto const location = distance_measure(info.intersections[1],
Copy link
Member

Choose a reason for hiding this comment

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

regarding the name location maybe distance_from_location or something is more relevant since this is not a location but some kind of distance.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed, I don't know why I took location. I will change it, and merge. Thanks for your review.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In other places I used dm for this purpose so I use that now here too.

@barendgehrels barendgehrels force-pushed the fix/get-turn-info-collinear branch from 8a4a79e to d006d1e Compare January 13, 2021 08:34
@barendgehrels barendgehrels merged commit 18f6ad3 into boostorg:develop Jan 13, 2021
@barendgehrels barendgehrels deleted the fix/get-turn-info-collinear branch January 13, 2021 08:36
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.

3 participants