Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Iterate over Polyhedron_3 (Optimization)
- Date: Mon, 20 Sep 2010 09:28:46 +0200
nasboy3d wrote:
Hi.....I think this is not possible.
I use CGAL for all my projects and it worked well.
Now I want to send triangles created by CGAL::convex_hull_3 to opengl..
Suppose that the convex hull is a polyhedron, the one way I found so far is
to do something like that :
for(Facet_iterator F = P.facets_begin; F != P.facets.end(); F++){
//get the three vertices
F->HalfEdge()->vertex()->point();
F->HalfEdge()->next()->vertex()->point();
F->HalfEdge()->prev()->vertex()->point();
}
You can see that this is not efficient at all as I duplicate a lot of
vertices.....
My question is : Can I iterate over my polyhedron in a "TRIANGLE_STRIP" or
"TRIANGLE FAN" manner ??
I think this is possible because CGAL is a big library but I don't know how
to do.....so need your help.
Thanks in advance...
S.
- [cgal-discuss] Iterate over Polyhedron_3 (Optimization), nasboy3d, 09/03/2010
- [cgal-discuss] Re: Iterate over Polyhedron_3 (Optimization), nasboy3d, 09/03/2010
- Re: [cgal-discuss] Iterate over Polyhedron_3 (Optimization), Sebastien Loriot (GeometryFactory), 09/20/2010
Archive powered by MHonArc 2.6.16.