From 6996030cf8522a2100a693efcf3269ca12f026e2 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Wed, 12 Jul 2017 14:24:18 +0200 Subject: [PATCH] Add a function that exports the facets of a c2t3 in a facegraph. --- .../include/CGAL/IO/output_surface_facets_to_facegraph.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Surface_mesher/include/CGAL/IO/output_surface_facets_to_facegraph.h b/Surface_mesher/include/CGAL/IO/output_surface_facets_to_facegraph.h index d64a4daa3ad..d5d8d00e2cc 100644 --- a/Surface_mesher/include/CGAL/IO/output_surface_facets_to_facegraph.h +++ b/Surface_mesher/include/CGAL/IO/output_surface_facets_to_facegraph.h @@ -42,6 +42,7 @@ void c2t3_to_facegraph(const C2T3& c2t3, FaceGraph& graph) { typedef typename boost::property_map::type VertexPointMap; typedef typename boost::property_traits::value_type Point_3; + typedef typename C2T3::Triangulation Tr; typedef typename Tr::Vertex_handle Vertex_handle; typedef typename Tr::Vertex_iterator Vertex_iterator; @@ -119,8 +120,6 @@ void c2t3_to_facegraph(const C2T3& c2t3, FaceGraph& graph) //used to set indices of vertices std::map V; int inum = 0; - - //add vertices std::vector::vertex_descriptor> vertices; for(Vertex_iterator vit = tr.vertices_begin();