raygeo.ops.assembly.polyline
Functions
polyline_to_ops()
polyline_to_ops(
points: list[tuple[float, float, float]],
move_first: bool = True,
) -> ops.Ops
Convert a 3-D polyline into an Ops command sequence.
When move_first is True the first point is emitted as a MoveTo and subsequent points as LineTo.
When move_first is False every point is emitted as a LineTo (useful for appending a polyline to
an in-progress cut).
| Parameter | Type | Description |
|---|---|---|
points | list[tuple[float, float, float]] | List of (x, y, z) tuples. |
move_first | bool = True | Whether to emit the first point as a MoveTo. |
| Returns | ops.Ops | An ~raygeo.ops.Ops container. |
| Complexity | O(n) where n = number of points |

polyline_to_ops with move_first=True vs move_first=False