Polygon Triangulation c#

user1708062 picture user1708062 · Oct 8, 2012 · Viewed 7.8k times · Source

I need to calculate triangles of a polygon. Polygon can contain holes. And Req an efficient way. So I think I need Constrained Delaunay Triangulation.

I must do that in c#, only need calculation not drawing or something.

poly2tri seems good but idk its not working for me :S

Anyway I need help. How can I calculate that triangles? (If your best offer is poly2tri, i can explain my problem on it)

Answer

abenci picture abenci · Oct 9, 2012

Delaunay was not designed for this, use Ear Clipping instead.