DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="2.13.0.3485" />

 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)

Checks if point is inside planar polygon without self intersections.

public Point[] Corners()

Returns corners of polygon

Returns self intersections between sides of the polygon.