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: CurveCollection | CurvePrimitive | undefined, region: AnyRegion): { coincidentParts: AnyCurve[], insideParts: AnyCurve[], outsideParts: AnyCurve[] }

Parameter Type Description
curvesToCut CurveCollection | CurvePrimitive | undefined  
region AnyRegion  

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

Defined in

Last Updated: 13 June, 2024