Method TrySplitBy
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TrySplitBy(GeoPoint2, out GeoPolyline2, out GeoPolyline2)
Splits this polyline at a point lying on it, using the default tolerance.
public bool TrySplitBy(GeoPoint2 point, out GeoPolyline2 first, out GeoPolyline2 second)
Parameters
pointGeoPoint2The point to split at, which must lie on this polyline.
firstGeoPolyline2The piece holding the start point.
secondGeoPolyline2The piece holding the end point.
Returns
- bool
true if the polyline was split; otherwise, false.
TrySplitBy(GeoPoint2, out GeoPolyline2, out GeoPolyline2, Tolerance)
Splits this polyline at a point lying on it, within tolerance.
public bool TrySplitBy(GeoPoint2 point, out GeoPolyline2 first, out GeoPolyline2 second, Tolerance tolerance)
Parameters
pointGeoPoint2The point to split at, which must lie on this polyline.
firstGeoPolyline2The piece holding the start point.
secondGeoPolyline2The piece holding the end point.
toleranceToleranceThe tolerance.
Returns
- bool
true if the polyline was split; otherwise, false.
TrySplitBy(GeoLine2, out GeoPolyline2[])
Splits this polyline everywhere a cutting line segment crosses it, using the default tolerance.
public bool TrySplitBy(GeoLine2 cutter, out GeoPolyline2[] pieces)
Parameters
cutterGeoLine2The cutting line segment.
piecesGeoPolyline2[]The pieces in order along this polyline if split succeeds.
Returns
- bool
true if the polyline was split; otherwise, false.
TrySplitBy(GeoLine2, out GeoPolyline2[], Tolerance)
Splits this polyline everywhere a cutting line segment crosses it, within tolerance.
public bool TrySplitBy(GeoLine2 cutter, out GeoPolyline2[] pieces, Tolerance tolerance)
Parameters
cutterGeoLine2The cutting line segment.
piecesGeoPolyline2[]The pieces in order along this polyline if split succeeds.
toleranceToleranceThe tolerance.
Returns
- bool
true if the polyline was split; otherwise, false.
TrySplitBy(GeoPoint2[], out GeoPolyline2[])
Splits this polyline everywhere a list of points lies on it, using the default tolerance.
public bool TrySplitBy(GeoPoint2[] points, out GeoPolyline2[] pieces)
Parameters
pointsGeoPoint2[]The points to split at.
piecesGeoPolyline2[]The resulting pieces in order along this polyline.
Returns
- bool
true if this polyline was split; otherwise, false.
TrySplitBy(GeoPoint2[], out GeoPolyline2[], Tolerance)
Splits this polyline everywhere a list of points lies on it, within tolerance.
public bool TrySplitBy(GeoPoint2[] points, out GeoPolyline2[] pieces, Tolerance tolerance)
Parameters
pointsGeoPoint2[]The points to split at.
piecesGeoPolyline2[]The resulting pieces in order along this polyline.
toleranceToleranceThe tolerance.
Returns
- bool
true if this polyline was split; otherwise, false.
TrySplitBy(GeoLine2[], out GeoPolyline2[])
Splits this polyline everywhere a list of cutting line segments crosses it, using the default tolerance.
public bool TrySplitBy(GeoLine2[] cutters, out GeoPolyline2[] pieces)
Parameters
cuttersGeoLine2[]The cutting line segments.
piecesGeoPolyline2[]The resulting pieces in order along this polyline.
Returns
- bool
true if this polyline was split; otherwise, false.
TrySplitBy(GeoLine2[], out GeoPolyline2[], Tolerance)
Splits this polyline everywhere a list of cutting line segments crosses it, within tolerance.
public bool TrySplitBy(GeoLine2[] cutters, out GeoPolyline2[] pieces, Tolerance tolerance)
Parameters
cuttersGeoLine2[]The cutting line segments.
piecesGeoPolyline2[]The resulting pieces in order along this polyline.
toleranceToleranceThe tolerance.
Returns
- bool
true if this polyline was split; otherwise, false.
TrySplitBy(GeoPolyline2[], out GeoPolyline2[])
Splits this polyline everywhere a list of cutting polylines crosses it, using the default tolerance.
public bool TrySplitBy(GeoPolyline2[] cutters, out GeoPolyline2[] pieces)
Parameters
cuttersGeoPolyline2[]The cutting polylines.
piecesGeoPolyline2[]The resulting pieces in order along this polyline.
Returns
- bool
true if this polyline was split; otherwise, false.
TrySplitBy(GeoPolyline2[], out GeoPolyline2[], Tolerance)
Splits this polyline everywhere a list of cutting polylines crosses it, within tolerance.
public bool TrySplitBy(GeoPolyline2[] cutters, out GeoPolyline2[] pieces, Tolerance tolerance)
Parameters
cuttersGeoPolyline2[]The cutting polylines.
piecesGeoPolyline2[]The resulting pieces in order along this polyline.
toleranceToleranceThe tolerance.
Returns
- bool
true if this polyline was split; otherwise, false.
TrySplitBy(GeoPolygon2[], out GeoPolyline2[], out GeoPolyline2[])
Splits this polyline everywhere a list of polygon boundaries crosses it, separating the parts that fall inside the polygons from those that fall outside, using the default tolerance.
public bool TrySplitBy(GeoPolygon2[] cutters, out GeoPolyline2[] inside, out GeoPolyline2[] outside)
Parameters
cuttersGeoPolygon2[]The polygons to split against.
insideGeoPolyline2[]The sub-polylines lying inside the polygons, in order along this polyline.
outsideGeoPolyline2[]The sub-polylines lying outside the polygons, in order along this polyline.
Returns
- bool
true if this polyline was split; otherwise, false.
TrySplitBy(GeoPolygon2[], out GeoPolyline2[], out GeoPolyline2[], Tolerance)
Splits this polyline everywhere a list of polygon boundaries crosses it, separating the parts that fall inside the polygons from those that fall outside, within tolerance.
public bool TrySplitBy(GeoPolygon2[] cutters, out GeoPolyline2[] inside, out GeoPolyline2[] outside, Tolerance tolerance)
Parameters
cuttersGeoPolygon2[]The polygons to split against.
insideGeoPolyline2[]The sub-polylines lying inside the polygons, in order along this polyline.
outsideGeoPolyline2[]The sub-polylines lying outside the polygons, in order along this polyline.
toleranceToleranceThe tolerance.
Returns
- bool
true if this polyline was split; otherwise, false.
TrySplitBy(GeoPolygon2, out GeoPolyline2[], out GeoPolyline2[])
Splits this polyline against a polygon, sorting the sub-polylines by which side of its boundary they fall on, using the default tolerance.
public bool TrySplitBy(GeoPolygon2 cutter, out GeoPolyline2[] inside, out GeoPolyline2[] outside)
Parameters
cutterGeoPolygon2The polygon to split against.
insideGeoPolyline2[]The sub-polylines lying inside the polygon, in order along this polyline.
outsideGeoPolyline2[]The sub-polylines lying outside the polygon, in order along this polyline.
Returns
- bool
true if the polygon boundary crosses this polyline; otherwise, false.
TrySplitBy(GeoPolygon2, out GeoPolyline2[], out GeoPolyline2[], Tolerance)
Splits this polyline against a polygon, sorting the sub-polylines by which side of its boundary they fall on, within tolerance.
public bool TrySplitBy(GeoPolygon2 cutter, out GeoPolyline2[] inside, out GeoPolyline2[] outside, Tolerance tolerance)
Parameters
cutterGeoPolygon2The polygon to split against.
insideGeoPolyline2[]The sub-polylines lying inside the polygon, in order along this polyline.
outsideGeoPolyline2[]The sub-polylines lying outside the polygon, in order along this polyline.
toleranceToleranceThe tolerance.
Returns
- bool
true if the polygon boundary crosses this polyline; otherwise, false.