of.geometry.polygon#
- of.geometry.polygon *geometry_tag* <string> *region* <int, double, double, double, double, …>
Create a geometry by assign the N <x> <y> <x> <y>… of the polygon. The polygon will be closed.
- Parameters:
geometry_tag: tag of the geometry group
region: Define the points on the polygon: N, [x0,y0] [x1,y1], [x2,y2], [x3, y3]…
Example:#
of.geometry.polygon [rock] size 4 [-1 -1] [1,-1] [1,1] [-1,1]