Skip to main content

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:
NameTypeAttributesDefaultDescription
spacingfloat<optional>0.1Specifies the spacing between two successive samples.
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.

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:

split(spline, countopt)

Parameters:
NameTypeAttributesDefaultDescription
splinePathBuilding.SplineSplit target
countint<optional>8Determines the number of iterations for the discretization

Home