Generate polygons from the command line.

None.

polygontype x1 y1 x2 y2...xn yn

wheretypeis a tile type to draw, andx1 y1...xn ynarenvertices of a polygon.

Thepolygoncommand allows generation of polygons on the layout from the command line, similarly to thewire segmentcommand. Thepolygoncommand automatically generates the proper tile geometry for the polygon as specified by vertices. Vertex points are pairs of X Y coordinates, and may take any dimensional value (default lambda, but may be internal units or metric units). Note that polygons should be convex; the tile generation algorithm is not guaranteed to work with non-convex geometries.While simple non-Manhattan structures (triangles) can be generated with the "splitpaint" and "spliterase" commands using macros, there is no convenient interactive method for generating complex polygon geometry. The

polygoncommand is best used in scripts to create specific patterns based on known geometry.

polygonis implemented as a built-in command inmagic.

wire

Return to command index |

*Last updated:* March 7, 2020 at 1:06pm