Fixed distance example

This commit is contained in:
Fernando Cacciola 2008-05-26 15:58:34 +00:00
parent b2007c7b3c
commit 1f363da4ab
1 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,8 @@
#include <boost/graph/breadth_first_search.hpp>
#include <fstream>
typedef CGAL::Cartesian<double> Kernel;
typedef Kernel::Point_3 Point;
typedef CGAL::Polyhedron_3<Kernel,CGAL::Polyhedron_items_with_id_3> Polyhedron;
@ -19,8 +21,12 @@ typedef boost::graph_traits<Polyhedron>::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;