From e5049d4b03eae00ac0176a7fa0b8a20a0e21e664 Mon Sep 17 00:00:00 2001 From: Efi Fogel Date: Tue, 26 Aug 2025 14:55:53 +0300 Subject: [PATCH] Last touches and fixes for testing whether two polygons intersect --- .../Arr_do_intersect_overlay_ss_visitor.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_do_intersect_overlay_ss_visitor.h b/Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_do_intersect_overlay_ss_visitor.h index bf55cb5e516..80c08031a50 100644 --- a/Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_do_intersect_overlay_ss_visitor.h +++ b/Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_do_intersect_overlay_ss_visitor.h @@ -74,14 +74,6 @@ public: /*! Destructor */ virtual ~Arr_do_intersect_overlay_ss_visitor() {} - // template - // void sweep(CurveIterator begin, CurveIterator end) - // { this->surface_sweep()->sweep(begin, end); } - - // template - // void sweep(CurveIterator cvs_begin, CurveIterator cvs_end, PointIterator pts_begin, PointIterator pts_end) - // { this->surface_sweep()->sweep(cvs_begin, cvs_end, pts_begin, pts_end); } - /*! Update an event that corresponds to a curve endpoint. */ void update_event(Event* e, const Point_2& end_point, const X_monotone_curve_2& cv, Arr_curve_end cv_end, bool is_new) { return Base::update_event(e, end_point, cv, cv_end, is_new); } @@ -95,14 +87,11 @@ public: { return Base::update_event(e, p, is_new); } /*! Update an event that corresponds to an intersection */ - void update_event(Event*, Subcurve*) { m_found_x = true; } + void update_event(Event* e, Subcurve* sc) { return Base::update_event(e, sc); } /*! Update an event that corresponds to an intersection between curves */ void update_event(Event*, Subcurve*, Subcurve*, bool is_new) { m_found_x = true; } - /*! found an overlap */ - void found_overlap(Subcurve*, Subcurve*, Subcurve*) { m_found_x = true; } - bool after_handle_event(Event* e, Status_line_iterator iter, bool flag) { if (m_found_x) this->surface_sweep()->stop_sweep(); return Base::after_handle_event(e, iter, flag);