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: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Polyhedron rendering in OpenGL
  • Date: Wed, 30 Sep 2009 00:50:58 +0200
  • Organization: GeometryFactory

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.

--
Laurent Rineau, PhD
Release Manager of the CGAL Project
http://www.cgal.org/
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page