RETAIN ONLY THE FIRST AND LAST POINTS OF A CURVE

Reduces a curve to just its first and last data points, discarding all intermediate points. Use this when only the endpoints of a curve are needed for downstream processing or reporting.

When to use

Classification: process.

Tagged: curve, endpoints, first, last, reduce, retain, trim.

Inputs

Label ID Type Default Required Description
Curve curve vector   Input curve (X/Y vector) whose first and last points will be retained; all intermediate points are discarded.

Outputs

Label ID Type Description
curve_retain_first_last_points_output_1 curve_retain_first_last_points_output_1 vector Output curve containing exactly two points: the first and last points of the input curve, preserving their original X/Y values.

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_retain_first_last_points


Auto-generated from transformation schema. Worker id: curve_retain_first_last_points. Schema hash: 12e14c6b35a0. Hand-curated docs in workerexamples/ override this page when present.