The Delaunay triangulation should produce a triangulation with a convex hull.
To fix it you would need to check if some of the triangles that have a point of the supertriangle need to have an edge flipped, before removing them from the triangulation.
Don't know if it matters to you, but just leaving it here in case someone wants to use this implementation and needs a convex hull.
The Delaunay triangulation should produce a triangulation with a convex hull.
To fix it you would need to check if some of the triangles that have a point of the supertriangle need to have an edge flipped, before removing them from the triangulation.
Don't know if it matters to you, but just leaving it here in case someone wants to use this implementation and needs a convex hull.