Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative to GLUTesselator? [closed]

Tags:

c++

c

opengl

I was wondering if there was a library or another way to produce multi contour polygons in OpenGL. I did code profiling and the GLUTesselator is killing my loop. Thanks


Bounty
+50 for a library with a GPL-compatible license, and ideally 3D (second best would be 2.5D like GLUtesselator itself.)

like image 748
jmasterx Avatar asked Jul 12 '10 18:07

jmasterx


2 Answers

There's always GPC.

EDIT: Some others:

Flipcode mystery triangulator. Slower than GPC in my extremely limited, probably wrong tests.

poly2tri is BSD-licensed.

EDIT2: Earcut.hpp is now a thing.

like image 174
genpfault Avatar answered Oct 22 '22 05:10

genpfault


For whatever's worth, the SGI Free License B 2.0 is now GPL-compatible, being essentially identical to the X11 license, according to the GNU project:

http://www.gnu.org/licenses/license-list.html#SGIFreeB

http://www.gnu.org/licenses/license-list.html#X11License

The SGI Free License B 2.0 is the license under which the GLU tessellator in GLU 9.0.0 has been released:

ftp://ftp.freedesktop.org/pub/mesa/glu/

So go ahead and use the GLU tessellator in your GPL project!

like image 1
Carlos Scheidegger Avatar answered Oct 22 '22 03:10

Carlos Scheidegger