예제 #1
0
 /// <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)));
 }
예제 #2
0
 /// <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)));
 }