diff --git a/Mesh_3/include/CGAL/Polygon_mesh_processing/surface_Delaunay_remeshing.h b/Mesh_3/include/CGAL/Polygon_mesh_processing/surface_Delaunay_remeshing.h index 11a8f1fa353..d550f2d3e18 100644 --- a/Mesh_3/include/CGAL/Polygon_mesh_processing/surface_Delaunay_remeshing.h +++ b/Mesh_3/include/CGAL/Polygon_mesh_processing/surface_Delaunay_remeshing.h @@ -238,9 +238,15 @@ TriangleMesh surface_Delaunay_remeshing(const TriangleMesh& tmesh } // Sharp features - provided by user as a set of polylines - const auto& polylines + using Polylines = typename internal_np::Lookup_named_param_def < + internal_np::polyline_constraints_t, + NamedParameters, + std::vector > // default + >::reference; + const Polylines& polylines = choose_parameter(get_parameter_reference(np, internal_np::polyline_constraints), std::vector >()); + if (!polylines.empty() && !protection_of_user_given_constraints) { std::vector > features;