collectChains MethodStatic

Restructure curve fragments as Paths and Loops.

collectChains(fragments: AnyCurve[], gapTolerance: number = Geometry.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: 16 April, 2024