Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problems drawing Delaunay Triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problems drawing Delaunay Triangulation


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Problems drawing Delaunay Triangulation
  • Date: Tue, 8 Dec 2009 18:35:03 +0100
  • Organization: GeometryFactory

On Tuesday 08 December 2009 18:27:24 Ariel Baez wrote:
> Going from memory, but when drawing the triangles if you are drawing a
> bunch of them, OpenGL needs three points for the first triangle, but only
> needs an additional point for the next triangle, since OpenGL will use
> point #2 and point #3 of your first triangle for the first two points of
> the next triangle. This can be turned off, but I dont recall exactly how
> this is performed (GL_PROPERTY)

If you use:

glBegin(GL_TRIANGLE_STRIP);
//
glEnd();

then you are drawing a triangle strip (what you described).

If you want to draw triangles:

glBegin(GL_TRIANGLES);
//
glEnd();

then that is triangles that you are drawing.

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



Archive powered by MHonArc 2.6.16.

Top of Page