splitPathsByRegionInOnOutXY MethodStatic

Find all intersections among curves in curvesToCut against the boundaries of region and return fragments of curvesToCut.

  • Break curvesToCut into parts inside, outside, and coincident.

splitPathsByRegionInOnOutXY(curvesToCut: undefined | AnyCurve, region: AnyRegion): { coincidentParts: AnyCurve[], insideParts: AnyCurve[], outsideParts: AnyCurve[] }

@returns output object with all fragments split among insideParts, outsideParts, and coincidentParts

Parameter Type Description
curvesToCut undefined | AnyCurve  
region AnyRegion  

Returns - { coincidentParts: AnyCurve[], insideParts: AnyCurve[], outsideParts: AnyCurve[] }

output object with all fragments split among insideParts, outsideParts, and coincidentParts

Defined in

Last Updated: 16 April, 2024