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