brepjs API Reference
    Preparing search index...

    Function offsetWire2D

    • Offset a wire in 2D. Returns a new wire. Does NOT dispose the input.

      Parameters

      • wire: Wire

        The wire to offset.

      • offset: number

        Offset distance (positive = outward, negative = inward).

      • kind: "arc" | "intersection" | "tangent" = 'arc'

        Join type for offset corners ('arc', 'intersection', or 'tangent').

      Returns Result<Wire>

      Ok with the offset wire, or Err if the operation fails.