How to cut triangles from concave Delaunay triangulation?

I use Delaunay to triangulate a concave polygon, but it fills the concavities. How to automatically delete triangles that are outside the boundaries of the polygon?

+6
polygon triangulation delaunay concave
source share
2 answers

Auto answer: in some cases this is not possible. I needed to use the limited Delaunay algorithm: http://www.cs.cmu.edu/~quake/triangle.delaunay.html

+2
source share

You shouldn't, you should find a Delauney procedure that handles borders correctly.

Alternatively, you could, assuming you know the edges, go through each triangle and remove the ones that cross the edge. Find percent segment tests for code to do this.

-2
source share

All Articles