forceClosure MethodStatic

Force the polygon to be closed.

  • If first and last points are not within tolerance, push copy of first point
  • If first and last points are within tolerance, set last point equal to first

forceClosure(polygon: Point3d[] | GrowableXYZArray, tolerance: numberGeometry.smallMetricDistance): void

Parameter Type Description
polygon Point3d[] | GrowableXYZArray input polygon
tolerance number closure distance tolerance

Returns - void

Defined in

Last Updated: 14 November, 2024