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
| Argument | Type | Required | Description |
|---|---|---|---|
points | Yes |
extend
Method used to decorate a given object (publicAPI+model) with vtkSpline3D characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | ISpline3DInitialValues | No | (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
| Argument | Type | Required | Description |
|---|---|---|---|
intervalIndex | Number | Yes | |
t | Number | Yes |
newInstance
Method used to create a new instance of vtkSpline3D.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | ISpline3DInitialValues | No | for pre-setting some of its content |
setClose
Set whether the spline is closed (the last point is joined to the first).
| Argument | Type | Required | Description |
|---|---|---|---|
close | Boolean | Yes |
setIntervals
Set the parametric values delimiting each spline interval. Pass an empty array to fall back to the point indices.
| Argument | Type | Required | Description |
|---|---|---|---|
intervals | Array[Number] | Yes |