From ed2067f461aed868d6dbc4ae743d2e7c0131ee93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Tue, 17 Mar 2020 17:08:32 +0100 Subject: [PATCH] using new API --- .../CGAL/Polygon_mesh_processing/extrude.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/extrude.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/extrude.h index a12e35e711d..a3e5849d0b4 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/extrude.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/extrude.h @@ -184,9 +184,10 @@ void extrude_mesh(const InputMesh& input, std::vector > bottom_v2v; std::vector > bottom_h2h; - copy_face_graph(input, output, std::back_inserter(bottom_v2v), - std::back_inserter(bottom_h2h), Emptyset_iterator(), - input_vpm, output_vpm); + copy_face_graph(input, output, parameters::vertex_point_map(input_vpm) + .vertex_to_vertex_output_iterator(std::back_inserter(bottom_v2v)) + .halfedge_to_halfedge_output_iterator(std::back_inserter(bottom_h2h)), + parameters::vertex_point_map(output_vpm)); // create the offset for the other side for(std::size_t i = 0; i< bottom_v2v.size(); ++i) @@ -198,9 +199,11 @@ void extrude_mesh(const InputMesh& input, // collect border halfedges for the creation of the triangle strip std::vector > top_v2v; std::vector > top_h2h; - copy_face_graph(input, output, std::inserter(top_v2v, top_v2v.end()), - std::inserter(top_h2h, top_h2h.end()), Emptyset_iterator(), - input_vpm, output_vpm); + copy_face_graph(input, output, parameters::vertex_point_map(input_vpm) + .vertex_to_vertex_output_iterator(std::inserter(top_v2v, top_v2v.end())) + .halfedge_to_halfedge_output_iterator(std::inserter(top_h2h, top_h2h.end())), + parameters::vertex_point_map(output_vpm)); + for(std::size_t i = 0; i< top_v2v.size(); ++i) { top(top_v2v[i].first, top_v2v[i].second);