Method Cut
Cut(Geometry, Polyline)
Cut the 'geometry' with the 'cutter'
Declaration
public static Geometry[] Cut(this Geometry geometry, Polyline cutter)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | The input geometry to be cut. |
Polyline | cutter | The polyline used to divide the geometry into pieces where they cross the cutter. |
Returns
Type | Description |
---|---|
Geometry[] | A set of geometries after the cut operation. |
Remarks
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.
Supports true curves.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |