closureTolerance

closureTolerance: number | undefined

An absolute distance tolerance for comparing points. Default value is smallMetricDistance.

  • If the first and last input points are within this distance, the line string is considered to be closed.
  • This distance is used when filletClosure is true to detect whether the last point is redundant and thus to be ignored during processing.
  • This distance is also used when simplifyPath is true to detect small line segments.

Defined in

Last Updated: 03 September, 2026