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();