开发者

Alternative to GLUTesselator? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_如何学Go

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 question

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.)


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜