newCorridor

fun newCorridor(classID: Long, pts: Array<GeoPoint>, radius: Int, atts: Array<Attribute>?): Polygon2D?

Adds a corridor (polygon) defined by a polyline and a radius into the specified class.

Return

A valid Polygon2D form or null if an error occurs.

Parameters

classID
        The class identifier.
pts
        Coordinates of the 2D polyline (or point for a circular zone).
radius
        The radius of the corridor.
atts
        An optional array of SVS attributes.

Throws