Skip to main content
Skip to main content

createSplineFromEditPoints

createSplineFromEditPoints

Description

Creates a new spline entity from the given edit points.

Definition

createSplineFromEditPoints(entityId parentId, floatArray editPoints, boolean? makeLinearSpline, boolean? isClosed)

Arguments

entityIdparentIdThe id of the entity which should be the parent of the newly created spline.
floatArrayeditPointsA list of edit point coordinates. Each edit point is defined by three consecutive coordinates (x, y, z). The number of supplied coordinates must be divisible by three. At least two edit points (six coordinates) must be supplied.
boolean?makeLinearSplineIf true, the newly created spline is of linear type. Otherwise its of cubic type. [optional, default=false]
boolean?isClosedIf true, the newly created spline is closed. Otherwise its open. [optional, default=false]

Return Values

entityIdobjectIdThe id of the newly created spline entity.