geom_add_shape
geom_add_shape -scratch_layeri_scratchID{[ -rect {f_xlof_ylof_xhif_yhi} ] [ -rects {[ {f_xlof_ylof_xhif_yhi}…] [ {f_x1 f_y1 f_x2 f_y2 f_x3 f_y3 … f_xn f_yn}…]}
Description
Adds one or more rectangle or polygon shapes to the given scratch layer. These shapes can be:
- Used directly with Boolean operations
- Used to indicate regions to operate on by commands such as find_shape and proute_create_via_array.
Arguments
Examples
The following command adds a rectangle and a polygon shape to scratch layer 2.
geom_add_shape -rects {{20 20 30 30} {0 1 10 1 10 7 4 7 4 3 0 3 0 1}} -scratch_layer 2
The following command, using -rect, adds a rectangle to scratch layer 2.
geom_add_shape -rects {20 20 30 30} -scratch_layer 2
The following command, using -rects, adds a rectangle to scratch layer 2.
geom_add_shape -rects {{20 20 30 30}} -scratch_layer 2
Related Topics
Return to top