Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Polyhedron rendering in OpenGL

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Polyhedron rendering in OpenGL


Chronological Thread 
  • From: gilles <>
  • To:
  • Subject: Re: [cgal-discuss] Polyhedron rendering in OpenGL
  • Date: Wed, 30 Sep 2009 21:25:23 +0200

Laurent Rineau (GeometryFactory) a écrit :
Le mardi 29 septembre 2009 20:55:05,

a écrit :
Hello,

I'm a (very) beginner and I do need help (to start) !!!

I'm wondering how can get I from HDS (it's a Polyhedron) the proper vertex
to use afterwards
for rendering in OpenGL.

For example, I want to convert HDS into triplet of point (forming a
triangle)

-> Can anybody helps ?

That you so much for this little "coup de pouce"

You should have a look at the source code of the polyhedron demo, in demo/Polyhedron/, with CGAL>=3.4.

In CGAL-3.5, see the "draw" methods in Scene_polyhedron_item.cpp, and Scene_nef_polyhedron_item.cpp, which use code from demo/Polyhedron/include/CGAL/gl_render.h and demo/Polyhedron/Scene_nef_rendering.cpp.

The nef case shows the non-triangular case, which is far more complicated, as one has to triangulate each face of the polyhedron.

I hope that can help.

Hello Laurent,

I have now everything to make a beautiful application !

Thanks for help

Gilles



Archive powered by MHonArc 2.6.16.

Top of Page