开发者

Convert polygon to triangles [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edi开发者_如何转开发t the question so it can be answered with facts and citations.

Closed 5 years ago.

The community reviewed whether to reopen this question last year and left it closed:

Original close reason(s) were not resolved

Improve this question

In order to create a VBO in OpenGl, I need to convert polygons to triangles. Is there an example of script/code somewhere that would describe this ? I would need something robust for convex and concave polygons.


Ear clipping is by far the best way to do this.

It is fully robust for both convex and concave polygons and runs in O(n^2) time


Implement Chazelle's method. Triangulation in linear time! What's not to like? :)

More realistically, poly2tri.


GLU tesselators provide a flexible way to do this.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜