GENERATE A CATMUL-ROM-SPLINE FOR ALL CURVES¶
Fits a Catmull-Rom spline through all input curves and resamples each to a uniform set of interpolated points. Use this worker to smooth or densify curves while preserving passage through the original control points.
When to use¶
Classification: process.
Tagged: catmull-rom, curve-smoothing, interpolation, resampling, spline.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve In | curve_in | vector | — | One or more input curves (x/y vector pairs) to be fitted with the Catmull-Rom spline; accepts multiple curves in a single batch. | |
| Number For Points | number_of_points | scalar | 100 | Number of evenly-spaced output points to generate along the fitted spline per curve; defaults to 100 — increase for smoother resolution, decrease for lighter output. | |
| Alpha | alpha | scalar | 0.5 | Catmull-Rom parameterisation exponent: 0.0 = uniform, 0.5 = centripetal (default, recommended for most curves), 1.0 = chordal. | |
| Skip Negative | skip_negative | scalar | yes | Whether to exclude negative x/y values when constructing the spline (‘yes’ / ‘no’); defaults to ‘yes’ — set to ‘no’ if the curve legitimately contains negative values. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curves_catmul_rom_spline_output_1 | curves_catmul_rom_spline_output_1 | vector | Resampled curves after Catmull-Rom spline fitting, returned as a vector collection with the same curve count as the input but at the requested number of points. |
Disciplines¶
- data.curve.transform
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curves_catmul_rom_spline
Auto-generated from transformation schema. Worker id: curves_catmul_rom_spline. Schema hash: 4eb3465af9b7. Hand-curated docs in workerexamples/ override this page when present.