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