Skip to content

Spline3D ​

Introduction ​

vtkSpline3D provides methods for creating a 1D cubic spline object from given parameters, and allows for the calculation of the spline value and derivative at any given point inside the spline intervals.

Methods ​

computeCoefficients ​

ArgumentTypeRequiredDescription
pointsYes

extend ​

Method used to decorate a given object (publicAPI+model) with vtkSpline3D characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesISpline3DInitialValuesNo(default: {})

getClose ​

Get whether the spline is closed (the last point is joined to the first).

getIntervals ​

Get the parametric values delimiting each spline interval. When empty, the intervals default to the point indices.

getPoint ​

ArgumentTypeRequiredDescription
intervalIndexNumberYes
tNumberYes

newInstance ​

Method used to create a new instance of vtkSpline3D.

ArgumentTypeRequiredDescription
initialValuesISpline3DInitialValuesNofor pre-setting some of its content

setClose ​

Set whether the spline is closed (the last point is joined to the first).

ArgumentTypeRequiredDescription
closeBooleanYes

setIntervals ​

Set the parametric values delimiting each spline interval. Pass an empty array to fall back to the point indices.

ArgumentTypeRequiredDescription
intervalsArray[Number]Yes