cuspTolerance

cuspTolerance: number | undefined

Maximum allowable length of a cusp when allowCusp is true. Default value is smallMetricDistance.

  • A cusp's length is defined to be the length of its "cusp segment", regardless of whether the cusp segment appears in the output Path (cf. option cuspSegments).
  • A cusp whose length exceeds cuspTolerance is avoided by suppressing one or both of the cusp's constituent fillets. Where two fillets combine to form such a cusp, but either fillet by itself produces a cusp shorter than cuspTolerance, the fillet that generates the shorter cusp survives; if the fillets by themselves generate equal length cusps, the fillet with smaller chain index survives.

Defined in

Last Updated: 23 June, 2026