From 38d88b168d894f9c4f72153563039508b52aa205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 4 Jun 2025 09:40:17 +0200 Subject: [PATCH] remove double clear and take the link of vh and not the infinite vertex --- Triangulation_3/include/CGAL/link_to_face_graph.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Triangulation_3/include/CGAL/link_to_face_graph.h b/Triangulation_3/include/CGAL/link_to_face_graph.h index a12a8043429..53b13933bf9 100644 --- a/Triangulation_3/include/CGAL/link_to_face_graph.h +++ b/Triangulation_3/include/CGAL/link_to_face_graph.h @@ -40,11 +40,10 @@ link_to_face_graph(const Triangulation_3& t, clear(fg); vertex_descriptor inf; vertex_descriptor nullvertex = boost::graph_traits::null_vertex(); - fg.clear(); typedef boost::unordered_map Vertex_map; Vertex_map vertex_map; std::vector cells; - t.incident_cells(t.infinite_vertex(),std::back_inserter(cells)); + t.incident_cells(vh, std::back_inserter(cells)); std::array face; typename boost::property_map::type vpm