compilation on windows & small bug fix

This commit is contained in:
Shepard Liu 2025-09-16 11:04:04 +08:00
parent a137e76807
commit f40f4a8629
3 changed files with 5 additions and 5 deletions

View File

@ -252,8 +252,8 @@ public:
private: private:
const Bounded_render_context& m_ctx; const Bounded_render_context& m_ctx;
Bounded_approximate_halfedge m_bounded_approx_halfedge; const Bounded_approximate_halfedge m_bounded_approx_halfedge;
Bounded_approximate_vertex m_bounded_approx_vertex; const Bounded_approximate_vertex m_bounded_approx_vertex;
}; };
} // namespace draw_aos } // namespace draw_aos

View File

@ -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. * \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 * 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. * 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) { void add_boundary_helper_point(Point from, Point to) {
@ -204,7 +204,7 @@ public:
void push_back(Point pt) { void push_back(Point pt) {
CGAL_assertion_msg(m_curr_cst_begin.has_value(), "Call start_constraint() before push_back()."); 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_points.push_back(pt);
m_point_types.push_back(Vertex_and_constraint); m_point_types.push_back(Vertex_and_constraint);
} }

View File

@ -36,9 +36,9 @@
#include <CGAL/config.h> #include <CGAL/config.h>
#include <CGAL/Arr_observer.h> #include <CGAL/Arr_observer.h>
#include <CGAL/unordered_flat_map.h> #include <CGAL/unordered_flat_map.h>
#include <CGAL/Bbox_2.h>
#include <CGAL/Draw_aos/type_utils.h> #include <CGAL/Draw_aos/type_utils.h>
#include <CGAL/Draw_aos/Arr_viewer.h> #include <CGAL/Draw_aos/Arr_viewer.h>
#include "CGAL/Bbox_2.h"
namespace CGAL { namespace CGAL {