From 1f363da4abc4d4627a9209c963929a21db376ffc Mon Sep 17 00:00:00 2001 From: Fernando Cacciola Date: Mon, 26 May 2008 15:58:34 +0000 Subject: [PATCH] Fixed distance example --- BGL/examples/BGL_polyhedron_3/distance.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BGL/examples/BGL_polyhedron_3/distance.cpp b/BGL/examples/BGL_polyhedron_3/distance.cpp index 21ba0c80532..b1daae06b4e 100644 --- a/BGL/examples/BGL_polyhedron_3/distance.cpp +++ b/BGL/examples/BGL_polyhedron_3/distance.cpp @@ -7,6 +7,8 @@ #include +#include + typedef CGAL::Cartesian Kernel; typedef Kernel::Point_3 Point; typedef CGAL::Polyhedron_3 Polyhedron; @@ -19,8 +21,12 @@ typedef boost::graph_traits::vertex_iterator vertex_iterator; int main() { int i=0; + Polyhedron P; - std::cin >> P; + + std::ifstream in("cube.off"); + + in >> P ; // associate indices to the vertices using the "id()" field of the vertex. vertex_iterator vb, ve;