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;