Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Take the edges of a polyhedron

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Take the edges of a polyhedron


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Take the edges of a polyhedron
  • Date: Tue, 06 Mar 2012 10:25:40 +0100

See this page:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Polyhedron_ref/Class_Polyhedron_3.html

and the range of halfedges provided by the range
[edges_begin(),edges_end()]

Sebastien.

On 03/06/2012 10:18 AM, sgdimitris wrote:
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.





Archive powered by MHonArc 2.6.16.

Top of Page