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: Ariel Baez <>
  • To:
  • Subject: Re: [cgal-discuss] Problems drawing Delaunay Triangulation
  • Date: Tue, 8 Dec 2009 12:40:06 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=UFs3ffHQX2sa2o3lMlg+zFGGeS8/8DrHI1OncyXkXLTaXivfsiSHj58dsGqlWRb1OP sUv/vXomMpkCHfmhsw/N0mWN7wiPEQmBIW9CkCpjgWjECVIEiHWLAvTsUZMDR6Jz7JdL M8xwybzVOAu/OyU61fJiUMS4R3qI4A1IEUh5U=

Thanks!

On Tue, Dec 8, 2009 at 12:35 PM, Laurent Rineau (GeometryFactory) <> wrote:
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/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss





Archive powered by MHonArc 2.6.16.

Top of Page