Skip to main content
Start with 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
Each vertex has an X and Y coordinate. Repeat the first vertex at the end to close the path.

Add a separate path in 3D

Wireframe
Each vertex now has X, Y, and Z coordinates. 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.