OFFSET THE CURVE

Applies a constant X and/or Y offset to a curve by adding the specified scalar values to every point’s coordinates. Use this worker to shift a curve along either axis without altering its shape.

When to use

Classification: process.

Tagged: curve, offset, shift, transform, x-offset, y-offset.

Inputs

Label ID Type Default Required Description
Curve To Be Offset curvetobeoffset vector   The input curve (X/Y vector pair) to which the offsets will be applied.
X Offset Value x_offsetvalue scalar 0.0   Scalar value added to every X coordinate of the curve; defaults to 0.0 (no horizontal shift).
Y Offset Value y_offsetvalue scalar 0.0   Scalar value added to every Y coordinate of the curve; defaults to 0.0 (no vertical shift).

Outputs

Label ID Type Description
curve_offset_output_1 curve_offset_output_1 vector The resulting curve after the X and Y offsets have been applied to all coordinate pairs.

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_offset


Auto-generated from transformation schema. Worker id: curve_offset. Schema hash: 6932962ede74. Hand-curated docs in workerexamples/ override this page when present.