C++ 2D tessellation library?

前端 未结 7 1571
一个人的身影
一个人的身影 2021-02-08 11:02

I\'ve got some convex polygons stored as an STL vector of points (more or less). I want to tessellate them really quickly, preferably into fairly evenly sized pieces, and with n

7条回答
  •  一生所求
    2021-02-08 11:24

    As balint.miklos mentioned in a comment above, the Shewchuk's triangle package is quite good. I have used it myself many times; it integrates nicely into projects and there is the triangle++ C++ interface. If you want to avoid slivers, then allow triangle to add (interior) Steiner points, so that you generate a quality mesh (usually a constrained conforming delaunay triangulation).

提交回复
热议问题