Cut the 'geometry' with the 'cutter'
public static Geometry Cut(this Geometry geometry, Polyline cutter)
The input geometry to be cut.
The polyline used to divide the geometry into pieces where they cross the cutter.
A set of geometries after the cut operation.
When cutting a polyline, all left cuts are grouped together in the first geometry, right cuts and coincident cuts are grouped in the second geometry, and each undefined cut, along with any uncut parts, are output as separate Polylines. When cutting a Polygon, all left cuts are grouped in the first Geometry, all right cuts are in the second Geometry, and each undefined cut, along with any left-over parts after cutting, are output as a separate Geometry. If there were no cuts then an empty array is returned. If the left or right cut does not exist, the returned geometry is empty for this type of cut. An undefined cut is only produced if a left cut or right cut was produced, and there was a part left over after cutting or a cut is bounded to the left and right of the cutter.
Platforms and versions
|.NET Standard 2.0||100.3 - 200.3|
|.NET||100.13 - 200.3|
|.NET Windows||100.13 - 200.3|
|.NET Android||200.0 - 200.3|
|.NET iOS||200.0 - 200.3|
|.NET Framework||100.0 - 200.3|
|Xamarin.Android||100.0 - 100.15|
|Xamarin.iOS||100.0 - 100.15|
|UWP||100.0 - 200.3|