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: 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 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: 28 October, 2024