mirror of https://github.com/CGAL/cgal
Fixed distance example
This commit is contained in:
parent
b2007c7b3c
commit
1f363da4ab
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
#include <boost/graph/breadth_first_search.hpp>
|
#include <boost/graph/breadth_first_search.hpp>
|
||||||
|
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
typedef CGAL::Cartesian<double> Kernel;
|
typedef CGAL::Cartesian<double> Kernel;
|
||||||
typedef Kernel::Point_3 Point;
|
typedef Kernel::Point_3 Point;
|
||||||
typedef CGAL::Polyhedron_3<Kernel,CGAL::Polyhedron_items_with_id_3> Polyhedron;
|
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 main() {
|
||||||
|
|
||||||
int i=0;
|
int i=0;
|
||||||
|
|
||||||
Polyhedron P;
|
Polyhedron P;
|
||||||
std::cin >> P;
|
|
||||||
|
std::ifstream in("cube.off");
|
||||||
|
|
||||||
|
in >> P ;
|
||||||
|
|
||||||
// associate indices to the vertices using the "id()" field of the vertex.
|
// associate indices to the vertices using the "id()" field of the vertex.
|
||||||
vertex_iterator vb, ve;
|
vertex_iterator vb, ve;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue