diff options
Diffstat (limited to 'boost/geometry/algorithms/detail/overlay/ring_properties.hpp')
-rw-r--r-- | boost/geometry/algorithms/detail/overlay/ring_properties.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/boost/geometry/algorithms/detail/overlay/ring_properties.hpp b/boost/geometry/algorithms/detail/overlay/ring_properties.hpp index b469052c84..0f2da67b62 100644 --- a/boost/geometry/algorithms/detail/overlay/ring_properties.hpp +++ b/boost/geometry/algorithms/detail/overlay/ring_properties.hpp @@ -29,6 +29,8 @@ struct ring_properties typedef Point point_type; typedef typename default_area_result<Point>::type area_type; + bool valid; + // Filled by "select_rings" Point point; area_type area; @@ -43,7 +45,8 @@ struct ring_properties std::vector<ring_identifier> children; inline ring_properties() - : area(area_type()) + : valid(false) + , area(area_type()) , reversed(false) , discarded(false) , parent_area(-1) @@ -59,7 +62,7 @@ struct ring_properties // We should take a point somewhere in the middle of the ring, // to avoid taking a point on a (self)tangency, // in cases where multiple points come together - geometry::point_on_border(this->point, ring_or_box, true); + valid = geometry::point_on_border(this->point, ring_or_box, true); } inline area_type get_area() const |