From c00466b762a953236c8f032c0b576486e0fce848 Mon Sep 17 00:00:00 2001 From: Dimitris Papavasiliou Date: Wed, 13 Jul 2022 23:39:44 +0300 Subject: [PATCH] Fix handing of VertexPointMap template parameter in MCF skeletonization. --- .../include/CGAL/Mean_curvature_flow_skeletonization.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Surface_mesh_skeletonization/include/CGAL/Mean_curvature_flow_skeletonization.h b/Surface_mesh_skeletonization/include/CGAL/Mean_curvature_flow_skeletonization.h index 9e6385a8a7e..13bbb522bc5 100644 --- a/Surface_mesh_skeletonization/include/CGAL/Mean_curvature_flow_skeletonization.h +++ b/Surface_mesh_skeletonization/include/CGAL/Mean_curvature_flow_skeletonization.h @@ -392,7 +392,7 @@ public: const Traits& traits = Traits()) : m_traits(traits), m_weight_calculator(true /* use_clamped_version */) { - init(tmesh); + init(tmesh, get(vertex_point, tmesh)); } #endif /// @} Constructor @@ -843,12 +843,13 @@ private: } /// Initialize some global data structures such as vertex id. - void init(const TriangleMesh& tmesh) + void init(const TriangleMesh& tmesh, VertexPointMap vpm) { typedef std::pair Vertex_pair; std::vector v2v; copy_face_graph(tmesh, m_tmesh, - CGAL::parameters::vertex_to_vertex_output_iterator(std::back_inserter(v2v))); + CGAL::parameters::vertex_to_vertex_output_iterator( + std::back_inserter(v2v)).vertex_point_map(vpm)); // copy input vertices to keep correspondence for(const Vertex_pair& vp : v2v)