splitPathsByRegionInOnOutXY MethodStatic

  • Find intersections of curvesToCut with boundaries of region.
  • Break curvesToCut into parts inside, outside, and coincident.
  • Return all fragments, split among insideParts, outsideParts, and coincidentParts in the output object.

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

Parameter Type Description
curvesToCut undefined | CurvePrimitive | CurveCollection  
region AnyRegion  

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

Defined in

Last Updated: 12 June, 2024