From 7a89b6a2eea105a10d79ec4648718fa2634e78a6 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Tue, 17 Feb 2015 12:07:13 +0100 Subject: [PATCH] uncomment add_vertex, and remove add_edge, which is now in Euler_operations --- .../boost/graph/graph_traits_Surface_mesh.h | 24 +++++-------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/BGL/include/CGAL/boost/graph/graph_traits_Surface_mesh.h b/BGL/include/CGAL/boost/graph/graph_traits_Surface_mesh.h index ec7a2b49f7d..0ea114d9fa1 100644 --- a/BGL/include/CGAL/boost/graph/graph_traits_Surface_mesh.h +++ b/BGL/include/CGAL/boost/graph/graph_traits_Surface_mesh.h @@ -426,8 +426,13 @@ add_vertex(CGAL::Surface_mesh

& sm) { return sm.add_vertex(); } - /* +template +typename boost::graph_traits >::vertex_descriptor +add_vertex(const typename boost::graph_traits >::vertex_property_type& p, CGAL::Surface_mesh

& sm) { + return sm.add_vertex(p); +} +/* // MutableGraph // add a vertex with a default constructed property template @@ -436,12 +441,6 @@ add_vertex(CGAL::Surface_mesh

& sm) { return sm.add_vertex(typename boost::graph_traits >::vertex_property_type()); } -template -typename boost::graph_traits >::vertex_descriptor -add_vertex(const typename boost::graph_traits >::vertex_property_type& p, CGAL::Surface_mesh

& sm) { - return sm.add_vertex(p); -} - template void clear_vertex(typename boost::graph_traits >::vertex_descriptor, @@ -496,17 +495,6 @@ remove_face(typename boost::graph_traits >::face_descripto sm.remove_face(f); } - - /* AF: why a bool?? -template -std::pair >::edge_descriptor, - bool> -add_edge(typename boost::graph_traits >::vertex_descriptor v1, - typename boost::graph_traits >::vertex_descriptor v2, - CGAL::Surface_mesh

& sm) { -} - */ - template typename boost::graph_traits >::face_descriptor add_face(CGAL::Surface_mesh

& sm)