API Reference > geometry-core > Curve > OffsetHelpers > collectChains collectChains MethodStatic Restructure curve fragments as chains and offsets Return object with named chains, insideOffsets, outsideOffsets BEWARE that if the input is not a loop the classification of outputs is suspect. collectChains(fragments: GeometryQuery[], gapTolerance: number, planarTolerance: number = Geometry.smallMetricDistance): ChainTypes Parameter Type Description fragments GeometryQuery[] fragments to be chained gapTolerance number planarTolerance number Returns - ChainTypes Defined in curve/internalContexts/MultiChainCollector.ts Line 356 Last Updated: 11 June, 2024