collectChains MethodStatic

Restructure curve fragments as Paths and Loops.

collectChains(fragments: AnyCurve[], gapTolerance: numberGeometry.smallMetricDistance): undefined | AnyChain

@returns chains, possibly wrapped in a BagOfCurves.

Parameter Type Description
fragments AnyCurve[] fragments to be chained
gapTolerance number distance to be treated as "effectively zero" when assembling fragments head-to-tail

Returns - undefined | AnyChain

chains, possibly wrapped in a BagOfCurves.

Defined in

Last Updated: 14 November, 2024