Class: CurvatureBasedInterpolator
PathBuilding.Pipeline.CurvatureBasedInterpolator(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 CurvatureBasedInterpolator(calculateDerivatesopt, keepSplineParametersopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
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. |
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
errorThreshold | float | <optional> | 0.15 | Gets or sets the allowed difference between the actual and the interpolated curve |
maxRecursionDepth | int | <optional> | 100 | Subdivide max resurions allowed |
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: