Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] OpenGL
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-09 (12:52)
From: Issac Trotts <ijtrotts@u...>
Subject: Re: [Caml-list] OpenGL
On Thu, Apr 08, 2004 at 11:25:33PM +0100, Jon Harrop wrote:
> On Thursday 08 April 2004 9:19 pm, Issac Trotts wrote:
> > What it is about lablGL that means it can never be made to work?
> I'll give some background information first. The GLU tesselator accepts a 
> polygon (as a list of contours) and a winding rule. It uses this to generate 
> a set of non-overlapping OpenGL primitives (triangles, triangle fans and 
> triangle strips) which cover the regions in the contours which are deemed to 
> be interior according to the winding rule.

My GLU binding is more general than the one in the LablGL distro.  It's
in the LablGL CVS repository.  You might ask Jacques Garrigue for

> > That one is called camlgl, which seems to have been abandoned.
> That's the one, yes. I've never used it...
> > I already wrote a binding for GLU using CamlIDL, but I don't recommend
> > it since GLU relies so much on callbacks.  It would probably be better to
> > wrap Jonathan Shewchuck's Triangle code:
> >
> >
> That is certainly a very nice looking library, but it seems to be solving a 
> related but substantially different problem (Delaunay triangulation vs 
> polygon tesselation)?

Shewchuck's program does constrained Delaunay triangulation, so it can
tesselate a large class of polygons.  In order to get triangle fans and
strips, you'd have to run a triangle strip generator on the output.

Issac Trotts
(w) 530-757-8789

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: