Skip to content

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

Description

@nmz787-intel

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)) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions