AddRectangle

AddRectangle (minx, miny, maxx, maxy) à TBPolygon70

 

Add a rectangular polygon.

Note:    In contrast to TerraBuilder GUI functionality, the added rectangle is not automatically attached to all layers currently in Edit mode.

Parameters

Name

Type

Description

minx

number (double)

The rectangle’s minimum X-coordinate.

miny

number (double)

The rectangle’s minimum Y-coordinate.

maxx

number (double)

The rectangle’s maximum X-coordinate.

maxy

number (double)

The rectangle’s maximum Y-coordinate.

 

Return Value

A TBPolygon70 representing the polygon created.