Skip to content

Commit 37448e9

Browse files
committed
cgal 5.4 compat
1 parent 9883d59 commit 37448e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/arrange_polygons.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,8 @@ void arrange_cgal_polygons(const std::vector<Polygon_2>& input_polygons_, std::v
11991199
boost::optional<CGAL::Segment_2<K>> closest_segment;
12001200
boost::optional<CGAL::Point_2<K>> closest_intersection_point;
12011201
K::FT sq_distance_along_ray = std::numeric_limits<double>::infinity();
1202-
for (const auto& seg : bnd.edges()) {
1202+
for (auto jt = bnd.edges_begin(); jt != bnd.edges_end(); ++jt) {
1203+
const auto& seg = *jt;
12031204
auto x = CGAL::intersection(ray, seg);
12041205
if (x) {
12051206
if (auto* xp = variant_get<CGAL::Point_2<K>>(&*x)) {

0 commit comments

Comments
 (0)