Subject: CGAL users discussion list
List archive
- From: sgdimitris <>
- To:
- Subject: [cgal-discuss] Take the edges of a polyhedron
- Date: Tue, 6 Mar 2012 01:18:11 -0800 (PST)
Hello,
I have a list of 3D points and I used the quickhull example from the folder
"CGAL-3.9\examples\Convex_hull_3"
to calculate their convex hull.
I used the following code to take the list of vertices of convex hull
"
Polyhedron_3 poly;
// compute convex hull of non-collinear points
CGAL::convex_hull_3(points.begin(), points.end(), poly);
std::cout << "The convex hull contains " << poly.size_of_vertices() << "
vertices" << std::endl;
for ( Vertex_iterator v = poly.vertices_begin(); v != poly.vertices_end();
++v)
std::cout << v->point() << std::endl;
"
*Is any way to take the edges of the polyhedron* that connect the vertices,
so I can draw it after in my directX gui?
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Take-the-edges-of-a-polyhedron-tp4449157p4449157.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Take the edges of a polyhedron, sgdimitris, 03/06/2012
- Re: [cgal-discuss] Take the edges of a polyhedron, Sebastien Loriot (GeometryFactory), 03/06/2012
- [cgal-discuss] Re: Take the edges of a polyhedron, sgdimitris, 03/06/2012
- [cgal-discuss] Re: Take the edges of a polyhedron, sgdimitris, 03/06/2012
- Re: [cgal-discuss] Re: Take the edges of a polyhedron, Sebastien Loriot (GeometryFactory), 03/06/2012
- [cgal-discuss] Re: Take the edges of a polyhedron, sgdimitris, 03/06/2012
- Re: [cgal-discuss] Re: Take the edges of a polyhedron, Sebastien Loriot (GeometryFactory), 03/06/2012
- [cgal-discuss] Re: Take the edges of a polyhedron, sgdimitris, 03/06/2012
- [cgal-discuss] Re: Take the edges of a polyhedron, sgdimitris, 03/06/2012
- Re: [cgal-discuss] Take the edges of a polyhedron, Sebastien Loriot (GeometryFactory), 03/06/2012
Archive powered by MHonArc 2.6.16.