17#include <range/v3/algorithm/find_if.hpp>
23 : _node_polygon(polygon), _parent(parent)
54 auto const child = ranges::find_if(
56 { return c->polygon().isPolylineInPolygon(p); });
60 (*child)->insertSimplePolygonTree(polygon_hierarchy);
65 polygon_hierarchy->
_parent =
this;
Definition of the SimplePolygonTree class.
bool isPolylineInPolygon(const Polyline &ply) const
This class computes and stores the topological relations between polygons. Every node of the SimplePo...
std::list< SimplePolygonTree * > _children
bool isPolygonInside(const SimplePolygonTree *polygon_hierarchy) const
SimplePolygonTree(Polygon *polygon, SimplePolygonTree *parent)
const SimplePolygonTree * parent() const
void insertSimplePolygonTree(SimplePolygonTree *polygon_hierarchy)
Polygon const & polygon() const
SimplePolygonTree * _parent
virtual ~SimplePolygonTree()