See Section 26.9.3 for general polygons in the plane.
The polygon command creates general polygons in space.