GENERATE A CATMUL-ROM-SPLINE FOR CURVE

Fits a Catmull-Rom spline to an input curve, producing a smoothed version with a configurable number of interpolated points. Use this worker to resample or smooth noisy curves while preserving the original shape through the control points.

When to use

Classification: process.

Tagged: ", -, ], a, c, e, f, g.

Inputs

Label ID Type Default Required Description
Curve In curve_in vector   Input curve (x/y vector) to be smoothed; this serves as the set of control points through which the Catmull-Rom spline is fitted.
Number For Points number_of_points scalar 100   Total number of evenly-spaced points to evaluate on the output spline; default is 100 — increase for higher resolution, decrease for coarser output.
Alpha alpha scalar 0.1   Catmull-Rom alpha parameter controlling spline parameterisation: 0 = uniform, 0.5 = centripetal (recommended), 1 = chordal; default is 0.1.
Skip Negative skip_negative scalar yes   When set to ‘yes’ (default), negative y-values are excluded before constructing the spline — useful for physical quantities that cannot be negative (e.g. force, displacement magnitude).
Skip Sharp Transitions skip_sharp_transitions scalar yes   When set to ‘yes’ (default), points that form abrupt slope discontinuities are omitted to prevent oscillation artefacts in the fitted spline.

Outputs

Label ID Type Description
curve_catmul_rom_spline_output_1 curve_catmul_rom_spline_output_1 vector Smoothed output curve (x/y vector) evaluated at the requested number of points along the fitted Catmull-Rom spline.

Disciplines

  • data.curve.transform
  • data.signal_processing

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curve_catmul_rom_spline


Auto-generated from transformation schema. Worker id: curve_catmul_rom_spline. Schema hash: 9bcc25932d0a. Hand-curated docs in workerexamples/ override this page when present.