allowCusp

allowCusp: boolean | undefined

Whether to allow cusps in the output Path. Default value is true.

  • A cusp forms when a fillet's radius is large enough to consume an adjacent line string segment, or when two fillets intersect.
  • Each cusp results in a retrograde "cusp segment" or gap in the output Path, as per the cuspSegments option.
  • The length of cusp segments in the output Path is bounded above by the cuspTolerance option.
  • When this option is false, cusps are avoided by suppressing one or both of their constituent fillets. Where two fillets combine to form a cusp, but either fillet by itself does not form a cusp, the fillet with smaller chain index survives.

Defined in

Last Updated: 23 June, 2026