collectInsideAndOutsideOffsets MethodStatic
Restructure curve fragments as Paths and Loops, and construct xy-offsets of the chains.
- If the inputs do not form Loop(s), the classification of offsets is suspect.
- For best offset results, the inputs should be parallel to the xy-plane.
collectInsideAndOutsideOffsets(fragments: AnyCurve[], offsetDistance: number, gapTolerance: number): { chains?: AnyChain, insideOffsets: AnyCurve[], outsideOffsets: AnyCurve[] }
@returns object with named chains, insideOffsets, outsideOffsets
Parameter | Type | Description |
---|---|---|
fragments | AnyCurve[] | fragments to be chained and offset |
offsetDistance | number | offset distance, applied to both sides of each fragment to produce inside and outside xy-offset curves. |
gapTolerance | number | distance to be treated as "effectively zero" when assembling fragments head-to-tail |
Returns - { chains?: AnyChain, insideOffsets: AnyCurve[], outsideOffsets: AnyCurve[] }
object with named chains, insideOffsets, outsideOffsets
Defined in
- curve/RegionOps.ts Line 512
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.