Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Iterate over Polyhedron_3 (Optimization)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Iterate over Polyhedron_3 (Optimization)


Chronological Thread 
  • 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 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...

I think this is not possible.

S.



Archive powered by MHonArc 2.6.16.

Top of Page