Skip to main content

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:
NameTypeAttributesDefaultDescription
calculateDerivatesboolean<optional>falseThe derivatives of the curve are calculated for each sample point. This is needed for some modes of the raster rendering.
keepSplineParametersboolean<optional>falseInterpolated spline contains SplineParameter for every sampled point.
Properties:
NameTypeAttributesDefaultDescription
errorThresholdfloat<optional>0.15Gets or sets the allowed difference between the actual and the interpolated curve
maxRecursionDepthint<optional>100Subdivide max resurions allowed

Since:

  • version 3.0

Extends

Methods

(abstract) discretize()

Overrides:

process(input, typeopt, lastSegmentopt)

Invokes input processing of particular implementation

Parameters:
NameTypeAttributesDefaultDescription
inputPathBuilding.Pipeline.InputNewly added stroke data that must be processed
typePathBuilding.Pipeline.SegmentType<optional>DataSequenceProcessor.SegmentType.INTEGRALInput type
lastSegmentboolean<optional>trueApplicable for SegmentType.ADDITION only, describe end of the input

Overrides:

reset()

Resets the processor to its initial state

Overrides:

Home