Subject: CGAL users discussion list
List archive
- From: gilles <>
- To:
- Subject: Re: [cgal-discuss] Polyhedron rendering in OpenGL
- Date: Wed, 30 Sep 2009 21:22:58 +0200
Pierre Alliez a écrit :
hi Gilles,Hello Pierre,
try something like
::glBegin(GL_TRIANGLES);
Facet_iterator f;
for(f = facets_begin();f != facets_end();f++)
gl_draw_facet(f);
::glEnd();
void gl_draw_facet(Facet_handle f)
{
// revolve around current face to get vertices
HF_circulator he = f->facet_begin();
do
{
const Point& p = he->vertex()->point();
::glVertex3d(p.x(),p.y(),p.z());
}
while(++he != f->facet_begin());
}
Thank you so much !
Gilles
- [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.