Skip to content

Spline1D ​

Introduction ​

vtkSpline1D 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 ​

computeCloseCoefficients ​

ArgumentTypeRequiredDescription
sizeNumberYes
workFloat32ArrayYes
xArray[Number]Yes
yArray[Number]Yes

computeOpenCoefficients ​

ArgumentTypeRequiredDescription
sizeNumberYes
workFloat32ArrayYes
xArray[Number]Yes
yArray[Number]Yes
optionsObjectYes
options.leftConstraintBoundaryConditionYes
options.leftValueNumberYes
options.rightConstraintBoundaryConditionYes
options.rightValueNumberYes

extend ​

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

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

getValue ​

ArgumentTypeRequiredDescription
intervalIndexNumberYes
tNumberYes

newInstance ​

Method used to create a new instance of vtkSpline1D.

ArgumentTypeRequiredDescription
initialValuesISpline1DInitialValuesNofor pre-setting some of its content