This project is read-only.

Concave Holes

Jul 14, 2016 at 7:39 PM

is it possible to specify concave holes when using Delaunay triangulation?

I am well aware of this extension function:

/// <summary>
    /// Add a polygon ring to the geometry and make it a hole.
    /// </summary>
    /// <remarks>
    /// WARNING: This works for convex polygons, but not for non-convex regions in general.
    /// </remarks>
    /// <param name="points">List of points which make up the hole.</param>
    /// <param name="mark">Common boundary mark for all segments of the hole.</param>
    public static void AddRingAsHole(this InputGeometry geometry,
            IEnumerable<Point> points, int mark = 0)

Is there a work around for concave polygons?

Jul 14, 2016 at 9:23 PM
The latest source code (beta 4) adds support for concave holes, see Contour class.
Jul 15, 2016 at 5:24 PM
Aha.. Yes I was using an old version. The new one works amazingly. Thanks so much!