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:
Improve this questionOriginal close reason(s) were not resolved
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.
精彩评论