newRectangle

fun newRectangle(classID: Long, rect: GeoRect, atts: Array<Attribute>?): Rectangle2D?

Adds a simple 2D-rectangle into the specified class and returns the corresponding Rectangle2D form.

Return

A valid Rectangle2D form or null if an error occurs.

Parameters

classID
The class identifier.
rect
Coordinates of the 2D-rectangle.
atts
An optional array of SVS attributes.

Throws