cut static method
Cuts the 'geometry' into parts with the 'cutter' Polyline.
When a Polyline or Polygon is cut, it is split where it intersects the cutter Polyline. The cut parts are output as a collection of geometries. All left cuts are grouped together in the first Geometry, all right cuts are grouped in the second Geometry, any uncut parts are output as separate geometries.
If the input polyline is not simple, then the operation will be performed on a simplified copy of the polyline. There is no need for you to call any simplify method. If there were no cuts then an empty List is returned.
Supports true curves.
Parameters:
Implementation
static List<Geometry> cut({
required Geometry geometry,
required Polyline cutter,
}) {
_initializeArcGISEnvironmentIfNeeded();
final arrayHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeometryEngine_cut(
geometry._handle,
cutter._handle,
errorHandler,
);
});
return arrayHandle.toList();
}