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

polygon::intersect(rectA, rectB, consider_touch) doesn't actually pass consider_touch to the intersection-check #82

Open
nmz787-intel opened this issue Sep 16, 2022 · 0 comments

Comments

@nmz787-intel
Copy link

function is:
boost::polygon::intersect(T1& a, const T2& b, bool consider_touch = true)

docs on the function:
https://www.boost.org/doc/libs/1_64_0/libs/polygon/doc/gtl_rectangle_concept.htm

bug where the bool isn't passed to the actual intersection-check is:

if(intersects(rectangle, b)) {

fix:
change
if(intersects(rectangle, b)) {
to:
if(intersects(rectangle, b, consider_touch)) {

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

No branches or pull requests

1 participant