/// <summary> /// Reduces Polygon vertices. /// </summary> /// <param name="tolerance">The tolerated deviation to include a vertex.</param> /// <returns>A new Polyline.</returns> public static Polygon Simplify(this Polygon polygon, double minLength, double filletFactor = 1.0) { return(Shaper.MakePolygon(Shaper.Simplify(polygon.Vertices.ToList(), minLength, filletFactor))); }
/// <summary> /// Reduces Polyline vertices. /// </summary> /// <param name="minLength">The tolerated deviation to include a vertex.</param> /// <returns>A new Polyline.</returns> public static Polyline Simplify(this Polyline polyline, double minLength, double filletFactor = 1.0) { return(new Polyline(Shaper.Simplify(polyline.Vertices.ToList(), minLength, filletFactor))); }