RegularPolygon

Type:section
Appearance:multiple

The RegularPolygon is a convex geometrical primitive characterized by its NEdges of identical length where all vertices are located on a common circle with Radius. It defaults to a hexagon.

Alternatively one may define the primitive by the SideLength of its edges orits Apothem, the radius of the inscribed circle.

_images/regular_polygon_parameter.png

The parameterization of a regular polygon the SideLength s, Apothem a and the Radius R.

The default port is the center of the circumscribed circle at position [0, 0] referenced as Origin.

A typical RegularPolygon might be defined like this:

RegularPolygon{
  Name = "RegularPolygon_1"
  DomainId = 1
  Priority = 1
  NEdges = 8
  Radius = 100.0
}