Subject: CGAL users discussion list
List archive
- 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/
- [cgal-discuss] Polyhedron rendering in OpenGL, gilles.kneuss, 09/29/2009
- Re: [cgal-discuss] Polyhedron rendering in OpenGL, Laurent Rineau (GeometryFactory), 09/30/2009
- Re: [cgal-discuss] Polyhedron rendering in OpenGL, Amy Tabb, 09/30/2009
- Re: [cgal-discuss] Polyhedron rendering in OpenGL, gilles, 09/30/2009
- Re: [cgal-discuss] Polyhedron rendering in OpenGL, gilles, 09/30/2009
- Re: [cgal-discuss] Polyhedron rendering in OpenGL, Amy Tabb, 09/30/2009
- [cgal-discuss] How to draw General Polygon_2, alex, 09/30/2009
- [cgal-discuss] CGAL with QT4 Problem, alex, 09/30/2009
- Res: [cgal-discuss] CGAL with QT4 Problem, Marcos R. P., 09/30/2009
- RE: Res: [cgal-discuss] CGAL with QT4 Problem, alex Dowson, 09/30/2009
- Res: [cgal-discuss] CGAL with QT4 Problem, Marcos R. P., 09/30/2009
- [cgal-discuss] CGAL with QT4 Problem, alex, 09/30/2009
- Re: [cgal-discuss] Polyhedron rendering in OpenGL, Pierre Alliez, 09/30/2009
- Re: [cgal-discuss] Polyhedron rendering in OpenGL, gilles, 09/30/2009
- Re: [cgal-discuss] Polyhedron rendering in OpenGL, Laurent Rineau (GeometryFactory), 09/30/2009
Archive powered by MHonArc 2.6.16.