From f40f4a86295278e37e80f1bc4fd8ea3e37e95e12 Mon Sep 17 00:00:00 2001 From: Shepard Liu Date: Tue, 16 Sep 2025 11:04:04 +0800 Subject: [PATCH] compilation on windows & small bug fix --- .../include/CGAL/Draw_aos/Arr_bounded_approximate_face.h | 4 ++-- .../include/CGAL/Draw_aos/Arr_bounded_face_triangulator.h | 4 ++-- Arrangement_on_surface_2/include/CGAL/draw_arrangement_2.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Arrangement_on_surface_2/include/CGAL/Draw_aos/Arr_bounded_approximate_face.h b/Arrangement_on_surface_2/include/CGAL/Draw_aos/Arr_bounded_approximate_face.h index 0368204e4d7..677785417ac 100644 --- a/Arrangement_on_surface_2/include/CGAL/Draw_aos/Arr_bounded_approximate_face.h +++ b/Arrangement_on_surface_2/include/CGAL/Draw_aos/Arr_bounded_approximate_face.h @@ -252,8 +252,8 @@ public: private: const Bounded_render_context& m_ctx; - Bounded_approximate_halfedge m_bounded_approx_halfedge; - Bounded_approximate_vertex m_bounded_approx_vertex; + const Bounded_approximate_halfedge m_bounded_approx_halfedge; + const Bounded_approximate_vertex m_bounded_approx_vertex; }; } // namespace draw_aos diff --git a/Arrangement_on_surface_2/include/CGAL/Draw_aos/Arr_bounded_face_triangulator.h b/Arrangement_on_surface_2/include/CGAL/Draw_aos/Arr_bounded_face_triangulator.h index 232fe1e349f..3726d60ff29 100644 --- a/Arrangement_on_surface_2/include/CGAL/Draw_aos/Arr_bounded_face_triangulator.h +++ b/Arrangement_on_surface_2/include/CGAL/Draw_aos/Arr_bounded_face_triangulator.h @@ -148,7 +148,7 @@ private: * \brief Add a helper point on the shared boundary of two points if they are on the same boundary side. * * When triangulating a arrangement face within a bounding box, curves outside the bounding box are projected on the - * four sides of the bbox. Topological errors could be introduced if several polylines are lying on the same side. + * four sides of the bbox. Topological errors could be introduced if several segments are lying on the same side. * Thus we add the midpoint in between the two points on boundary and move it outward with an increasing offset. */ void add_boundary_helper_point(Point from, Point to) { @@ -204,7 +204,7 @@ public: void push_back(Point pt) { CGAL_assertion_msg(m_curr_cst_begin.has_value(), "Call start_constraint() before push_back()."); - if(m_points.size() - *m_curr_cst_begin >= 2) add_boundary_helper_point(m_points.back(), pt); + if(m_points.size() - *m_curr_cst_begin >= 1) add_boundary_helper_point(m_points.back(), pt); m_points.push_back(pt); m_point_types.push_back(Vertex_and_constraint); } 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 1f5fa568db6..9d981a4a2bb 100644 --- a/Arrangement_on_surface_2/include/CGAL/draw_arrangement_2.h +++ b/Arrangement_on_surface_2/include/CGAL/draw_arrangement_2.h @@ -36,9 +36,9 @@ #include #include #include +#include #include #include -#include "CGAL/Bbox_2.h" namespace CGAL {