See Section 26.9.4 for polygonal lines in the plane.
The open_polygon command creates polygonal lines in space.