API Reference > geometry-core > Curve > RegionOps > collectInsideAndOutsideOffsets collectInsideAndOutsideOffsets 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. collectInsideAndOutsideOffsets(fragments: GeometryQuery[], offsetDistance: number, gapTolerance: number): { chains: ChainTypes, insideOffsets: GeometryQuery[], outsideOffsets: GeometryQuery[] } Parameter Type Description fragments GeometryQuery[] fragments to be chained offsetDistance number offset distance. gapTolerance number Returns - { chains: ChainTypes, insideOffsets: GeometryQuery[], outsideOffsets: GeometryQuery[] } Defined in curve/RegionOps.ts Line 436 Last Updated: 11 June, 2024