Polygon Command

Polygon( <Point>, …​, <Point> )

Returns a polygon defined by the given points.

Polygon((1, 1), (3, 0), (3, 2), (0, 4)) yields a quadrilateral.

Polygon( <Point>, <Point>, <Number of Vertices> )

Creates a regular polygon with n vertices.

Polygon((1, 1), (4, 1), 6) yields a hexagon.

Polygon( <List of Points> )

Returns a polygon defined by the points in the list.

Polygon({(0, 0), (2, 1), (1, 3)}) yields a triangle.

Polygon( <Point>, <Point>, <Number of Vertices n>, <Direction> )

Creates a regular polygon with n vertices, and directed by the direction (e.g. a plane to which the polygon will be parallel, if possible).

See also Mode polygon.svg Polygon and Mode regularpolygon.svg Regular Polygon tools.