numelectscript 2 and put geometry 2d or geometry 3d inside the phase block. Add comma-separated coordinates with vertex. The lab connects consecutive vertices in the order you enter them.
Close a 2D triangle
Triangle
Add a separate path in 3D
Wireframe
break prevents a segment between the previous vertex and the start of the new path. Use Azimuth and Elevation to rotate the wireframe.
After applying either example, select View graphs, then Geometry only under Plot display to hide the phase plots. A script supports up to 256 vertices.