GeoLine3D

new SuperMap3D.GeoLine3D(point3DsArray)

3D line object class. It is a line object composed of three-dimensional point strings, and these points may not be on the same plane. A line object consists of one or more parts, and each part is called a sub-object of the line object. Each child object is represented by a Point3D array.
Name Type Description
point3DsArray Array Point3Ds array.

Members

partCount : Number

Get the number of sub-objects of the 3D line object.
Default Value: 0.0

Methods

addPart(point3Ds)Number

Appends a sub-object to the 3D line object.
Name Type Description
point3Ds Object String of points for the 3D Line sub-object.
Returns:
Returns the index number of the added child object on success, or -1 on failure.

getPart(index)Object

Get the 3D point object array of the sub-object with the specified index number in the 3D line object.
Name Type Description
index Number The index number (greater than or equal to zero) of the sub-object in the 3D line object.
Returns:
Returns a Point3Ds object on success, or null on failure.