Polygon Triangulation with Holes

前端 未结 9 912
终归单人心
终归单人心 2020-11-30 19:12

I am looking for an algorithm or library (better) to break down a polygon into triangles. I will be using these triangles in a Direct3D application. What are the best availa

9条回答
  •  再見小時候
    2020-11-30 19:24

    Jonathan Shewchuk's Triangle library is phenomenal; I've used it for automating triangulation in the past. You can ask it to attempt to avoid small/narrow triangles, etc., so you come up with "good" triangulations instead of just any triangulation.

提交回复
热议问题