From d5f66f614ea7aa33817b805aa3db274c5b5d1f76 Mon Sep 17 00:00:00 2001 From: Efi Fogel Date: Thu, 26 May 2022 19:40:14 +0300 Subject: [PATCH] Fixed drawing 2D arrangements --- .../include/CGAL/draw_arrangement_2.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Arrangement_on_surface_2/include/CGAL/draw_arrangement_2.h b/Arrangement_on_surface_2/include/CGAL/draw_arrangement_2.h index 64155dabc4b..82270ff35f2 100644 --- a/Arrangement_on_surface_2/include/CGAL/draw_arrangement_2.h +++ b/Arrangement_on_surface_2/include/CGAL/draw_arrangement_2.h @@ -143,14 +143,14 @@ protected: //! void add_face(Face_const_handle face, Face_const_handle parent) { - for (auto it = face->outer_ccbs_begin(); it != face->outer_ccbs_end(); ++it) - { - draw_region(*it); - add_ccb(*it, parent); - } - for (auto it = face->inner_ccbs_begin(); it != face->inner_ccbs_end(); ++it) add_ccb(*it, parent); + + for (auto it = face->outer_ccbs_begin(); it != face->outer_ccbs_end(); ++it) + { + add_ccb(*it, parent); + draw_region(*it); + } } //! @@ -242,7 +242,7 @@ public: curr = curr->twin()->next(); std::vector polyline; - approx(curr->curve(), 10, std::back_inserter(polyline)); + approx(curr->curve(), std::back_inserter(polyline), 10); auto it = polyline.begin(); auto prev = it++; for (; it != polyline.end(); prev = it++) { @@ -260,7 +260,7 @@ public: const auto* traits = this->m_arr.geometry_traits(); auto approx = traits->approximate_2_object(); std::vector polyline; - approx(curve, 10, std::back_inserter(polyline)); + approx(curve, std::back_inserter(polyline), 10); auto it = polyline.begin(); auto prev = it++;