#include #include #include #include #include #include #include typedef CGAL::Simple_cartesian K; typedef K::Point_3 Point_3; typedef CGAL::Surface_mesh SM; typedef CGAL::Polyhedron_3 Polyhedron; typedef CGAL::Graph_with_descriptor_with_graph Mesh; typedef CGAL::Graph_with_descriptor_with_graph PMesh; typedef boost::graph_traits::vertex_descriptor vertex_descriptor; typedef boost::graph_traits::vertex_descriptor pvertex_descriptor; int main() { SM sm; Mesh mesh(sm); CGAL::make_hexahedron( Point_3(-1,-1,-1), Point_3(1,-1,-1), Point_3(1,1,-1), Point_3(-1,1,-1), Point_3(-1,1,1), Point_3(-1,-1,1), Point_3(1,-1,1), Point_3(1,1,1), sm ); vertex_descriptor vd = * vertices(mesh).first; std::cout << "Mesh is aware that it is based on a "<