Browse thread
[Caml-list] OpenGL
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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 access. > > 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: > > > > http://www-2.cs.cmu.edu/~quake/triangle.html > > 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 http://mallorn.ucdavis.edu/~ijtrotts (w) 530-757-8789 ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners