DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="3.4.0-beta6196" />

 Polygon

public class Polygon : PolyCurve
public double PlaneDeviation { get; }

Returns maximum deviation from average plane of polygon.

public Point[] Points { get; }

Returns all the segment start / end points.

public static Polygon ByPoints(IEnumerable<Point> points)

Construct a Polygon Curve by connecting Points.

public static Polygon RegularPolygon(Circle circle, int numberSides = 5)

Construct an inscribed Polygon Curve within a circle.

public Point Center()

Returns average point of corners of polygon

public bool ContainmentTest(Point point)

Returns whether an input point is contained within the polygon. If the polygon is not planar then the point will be projected onto the best-fit plane and the containment will be computed using the projection of the polygon onto the best-fit plane. This will return a failed status if the polygon self-intersects.

public Point[] Corners()

Returns corners of polygon

Returns self intersections between sides of the polygon.