GLU tessellation

I was going to implement my SGLShape class when… oops, there’s no tessellation support in LWJGL, isn’t it ?

Do someone have some java code that does the tessellation of a flattened java2d Shape ?

You can try my quick n dirty port:

http://kaioa.com/src/tools/Tesselator.zip

(The test app is for 0.9)

Thanks oNyx

I’ll try it.

News: there’s a CRC error in the ZIP.

MSG:
Extracting TessMono.java
bad CRC ec1403d2 (should be be995f28)
Warning: the size of the extracted file (2366) does not match the uncompressed size (8433) recorded in the zip file

Ooops. Ye the uploaded file was broken. Try it again…

I get it running. Just some old “Window” calls… Gosh it’s quite a complex piece of software!

Do you think it’s robust enough to tessellate java2d glyphs ?
If so, I would use it in my libraries, if the license allows this.

Do you think it’s robust enough to tessellate java2d glyphs ?

It worked fine for my stuff… therefore I guess it’s good enough.

If so, I would use it in my libraries, if the license allows this.

The original is from SGI (lincense here), which was been ported by Pepijn Van Eeckhoudt and Nathan Parker Burg to java (jogl). (I just made some rather ugly modifications to get floats.)