of.geometry.square#

of.geometry.square *geometry_tag* <string> *region* <double, double, double, double>

Create a geometry by assigning xmin, xmax, ymin and ymax of the box.

Parameters:

geometry_tag: tag of the geometry group

region: There are three methods to create a square:

  1. [xmin. xmax. ymin, ymax]

  2. x [xmin, xmax] y [ymin, ymax]

  3. xmin value xmax value ymin value ymax value


Example:#

# Method 1
of.geometry.square 'rock' [0 1 0 1]
# Method 2
of.geometry.square [rock] x [0 1] y [0 1]
# Method 3
of.geometry.square [rock] xmin 0 xmax 1 ymin 0 ymax 1
Square