Alternative to GLUTesselator? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this questionI 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.)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.
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!
I don't know about the multi contour part, but I think if you want the graphic card to do the hard work of drawing polygons you might want to look a Stencil Buffer.
There's also Triangle and TetGen.
精彩评论