6#include <range/v3/algorithm/find_if.hpp>
43 auto const child = ranges::find_if(
45 { return c->polygon().isPolylineInPolygon(p); });
49 (*child)->insertSimplePolygonTree(polygon_hierarchy);
54 polygon_hierarchy->
_parent =
this;
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()