We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
The community reviewed whether to reopen this question 2 years ago and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
剪耳是迄今为止最好的方法。
它对于凸多边形和凹多边形都具有完全鲁棒性,并且运行时间为 O(n^2)
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
实施 Cazelle 方法。线性时间内的三角测量!有什么不喜欢的? :)
更现实的是,poly2tri。
Implement Chazelle's method. Triangulation in linear time! What's not to like? :)
More realistically, poly2tri.
GLU 细分器提供了一种灵活的方法来做到这一点。
GLU tesselators provide a flexible way to do this.