I'm newbie at boost geometry, I have created polygon with boost::geometry::assign_points()
. But I only create outer and inner of that polygon is empty. So I try test boost::geometry::overlaps()
with two polygons A, B and A is inside B, result is not overlaps.
So, What can I do to create solid polygon (only know outer point of polygon and inside of polygon is valid) ?
Polygons are by definition solid until you subtract inner rings. From §6.1.11.1 from the standard¹:
Overlapping doesn't mean what you think it means.
From §6.1.15.3 (Named spatial relationship predicates based on the DE-9IM)
Overlaps
It is defined as
Contains
Intersects
In your case you might be looking for
!disjoint
,within
,contains
orintersection
:Live On Coliru
Which prints
¹ The OGC Simple Feature / Common architecture