RegularPolygon

ipkiss3.all.RegularPolygon(layer, center=(0.0, 0.0), radius=1.0, n_o_sides=8)

Returns a Boundary Element with a regular polygon shape.

Parameters:
layer: Layer object, required

Layer on which the shape is drawn

centerCoord2 or Tuple

Center coordinate of the regular polygon, defaults to (0,0)

radiusPositive number

Radius of the polygon (distance from center to vertex). defaults to 1.0

n_o_sidespositive int

Number of sides/vertices of the polygon. Defaults to 8.

Returns:
Boundary element.