From ce9bf321dfb3fcf7b2ebde1d731d746eb3cffc79 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Fri, 23 Apr 2021 16:16:53 +0200 Subject: [PATCH] use num_vertices() instead of vertices().size() (garbage probleme in SMesh) --- .../include/CGAL/Polygon_mesh_processing/measure.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h index 5a3298dbe7d..2b5745cc64d 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h @@ -899,8 +899,8 @@ void match_faces(const PolygonMesh& m1, const PolygonMesh& m2, std::map point_id_map; - std::vector m1_vertex_id(vertices(m1).size(), -1); - std::vector m2_vertex_id(vertices(m2).size(), -1); + std::vector m1_vertex_id(num_vertices(m1), -1); + std::vector m2_vertex_id(num_vertices(m2), -1); boost::dynamic_bitset<> shared_vertices(m1_vertex_id.size() + m2_vertex_id.size()); //iterate both meshes to set ids of all points, and set vertex/point_id maps.