Polygon Triangulation with Holes

前端 未结 9 908
终归单人心
终归单人心 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:38

    try libtess2

    https://code.google.com/p/libtess2/downloads/list

    based on the original SGI GLU tesselator (with liberal licensing). Solves some memory management issues around lots of small mallocs.

提交回复
热议问题