The 3D line object class. It is a line object composed of a string of three-dimensional points, and these points may not be on the same plane. A line object is composed of one or more parts, and each part is called a sub-object of the line object. Each sub-object is represented by a Point3D array.
Name | Type | Description |
---|---|---|
point3DsArray |
Array | Point3Ds array. |
Members
-
Get the number of child objects of the 3D line object.
-
Default Value:
0.0
Methods
-
Add a sub-object to the 3D line object.
Name Type Description point3Ds
Object The point string of the 3D line sub-object. Returns:
If it succeeds, it returns the index number of the added child object; if it fails, it returns -1. -
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 of the child object in the 3D line object (greater than or equal to zero). Returns:
If it succeeds, it returns the Point3Ds object; if it fails, it returns a null value.