diff --git a/Packages/Arrangement/include/CGAL/Pm_with_intersections.h b/Packages/Arrangement/include/CGAL/Pm_with_intersections.h index fb124f7b047..9214578c182 100644 --- a/Packages/Arrangement/include/CGAL/Pm_with_intersections.h +++ b/Packages/Arrangement/include/CGAL/Pm_with_intersections.h @@ -26,6 +26,7 @@ #include #include #include +#include #ifndef CGAL_PM_COUNT_OPERATIONS_TIMES #define CGAL_PM_START_OP(x) @@ -33,8 +34,6 @@ #define CGAL_DEFINE_COUNT_OP_TIMES_OBJECT #endif -#include - CGAL_BEGIN_NAMESPACE @@ -1197,13 +1196,18 @@ public: return insert_intersecting_curve(c, src, tgt, false, en); } + // inserts a given curve container into the map. template Halfedge_iterator insert(const X_curve_2_iterator & begin, const X_curve_2_iterator & end, Change_notification * en = NULL) { - sweep_to_construct_planar_map_2(begin, end, *traits, *this); + typedef Pmwx_aggregate_insert Pmwx_agg_insert; + Pmwx_agg_insert p(traits); + p.insert_curves(begin, end, *this, en); + return halfedges_begin(); }