MORPH CURRENT POINTS TO NEW POINTS USING LINEAR INTERPOLATION¶
Morphs a curve by linearly interpolating between a set of “from” control points and a corresponding set of “to” control points, redistributing the curve’s values accordingly. Use this worker when you need to warp or reshape a curve by mapping specific anchor points to new positions via linear interpolation.
When to use¶
Classification: process.
Tagged: control_points, curve_transform, linear_interpolation, morph, warp.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve | curve | vector | — | Input curve (vector of X/Y pairs) to be morphed; this is the source curve whose points will be warped between the from/to control-point sets. | |
| From Points Csv | from_points_csv | text | — | CSV-formatted string listing the original (source) control-point coordinates used as the morph anchors; each row should be an X,Y pair defining where the curve currently passes. | |
| To Points Csv | to_points_csv | text | — | CSV-formatted string listing the target control-point coordinates that the corresponding from-points should be mapped to; must have the same number of rows as from_points_csv. | |
| Include Initial Points | includeinitialpoints | string | yes | Whether to prepend the original curve’s first point to the morphed result (‘yes’ by default); set to ‘no’ to omit the initial anchor point from the output curve. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curve_linear_morph_points_output_1 | curve_linear_morph_points_output_1 | vector | Morphed output curve (vector of X/Y pairs) whose points have been linearly interpolated from the from-point positions to the to-point positions. |
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=curve_linear_morph_points
Auto-generated from transformation schema. Worker id: curve_linear_morph_points. Schema hash: f5f9bc2b59f6. Hand-curated docs in workerexamples/ override this page when present.