Class: DistanceBasedInterpolator
PathBuilding.Pipeline.DistanceBasedInterpolator(spacingopt, calculateDerivatesopt, keepSplineParametersopt)
Catmull-Rom spline interpolator.Provided with Catmull-Rom spline control points, produces multiple sample points of the same kind along the spline trajectory.
Constructor
new DistanceBasedInterpolator(spacingopt, calculateDerivatesopt, keepSplineParametersopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
spacing | float | <optional> | 0.1 | Specifies the spacing between two successive samples. |
calculateDerivates | boolean | <optional> | false | The derivatives of the curve are calculated for each sample point. This is needed for some modes of the raster rendering. |
keepSplineParameters | boolean | <optional> | false | Interpolated spline contains SplineParameter for every sampled point. |
Since:
- version 3.0
Extends
Methods
(abstract) discretize()
Overrides:
process(input, typeopt, lastSegmentopt)
Invokes input processing of particular implementation
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
input | PathBuilding.Pipeline.Input | Newly added stroke data that must be processed | ||
type | PathBuilding.Pipeline.SegmentType | <optional> | DataSequenceProcessor.SegmentType.INTEGRAL | Input type |
lastSegment | boolean | <optional> | true | Applicable for SegmentType.ADDITION only, describe end of the input |
Overrides:
reset()
Resets the processor to its initial state
Overrides:
split(spline, countopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
spline | PathBuilding.Spline | Split target | ||
count | int | <optional> | 8 | Determines the number of iterations for the discretization |