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 448
Last Updated: 30 November, 2023