Method TrySplitBy
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TrySplitBy(GeoPoint2, out GeoLine2, out GeoLine2)
Splits this segment at a point lying on it, using the default tolerance.
public bool TrySplitBy(GeoPoint2 point, out GeoLine2 first, out GeoLine2 second)
Parameters
pointGeoPoint2The point to split at, which must lie on this segment.
firstGeoLine2The piece holding the start point.
secondGeoLine2The piece holding the end point.
Returns
- bool
true if the segment was split; otherwise, false.
TrySplitBy(GeoPoint2, out GeoLine2, out GeoLine2, Tolerance)
Splits this segment at a point lying on it, within tolerance.
public bool TrySplitBy(GeoPoint2 point, out GeoLine2 first, out GeoLine2 second, Tolerance tolerance)
Parameters
pointGeoPoint2The point to split at, which must lie on this segment.
firstGeoLine2The piece holding the start point.
secondGeoLine2The piece holding the end point.
toleranceToleranceThe tolerance.
Returns
- bool
true if the segment was split; otherwise, false.
TrySplitBy(GeoLine2, out GeoLine2, out GeoLine2)
Splits this segment where a cutting line segment crosses it, using the default tolerance.
public bool TrySplitBy(GeoLine2 cutter, out GeoLine2 first, out GeoLine2 second)
Parameters
cutterGeoLine2The cutting line segment.
firstGeoLine2The piece holding the start point.
secondGeoLine2The piece holding the end point.
Returns
- bool
true if the segment was split; otherwise, false.
TrySplitBy(GeoLine2, out GeoLine2, out GeoLine2, Tolerance)
Splits this segment where a cutting line segment crosses it, within tolerance.
public bool TrySplitBy(GeoLine2 cutter, out GeoLine2 first, out GeoLine2 second, Tolerance tolerance)
Parameters
cutterGeoLine2The cutting line segment.
firstGeoLine2The piece holding the start point.
secondGeoLine2The piece holding the end point.
toleranceToleranceThe tolerance.
Returns
- bool
true if the segment was split; otherwise, false.
TrySplitBy(GeoPolygon2, out GeoLine2[], out GeoLine2[])
Splits this segment against a polygon, sorting the parts by which side of its boundary they fall on, using the default tolerance.
public bool TrySplitBy(GeoPolygon2 cutter, out GeoLine2[] inside, out GeoLine2[] outside)
Parameters
cutterGeoPolygon2The polygon to split against.
insideGeoLine2[]The parts lying inside the polygon, in order along this segment.
outsideGeoLine2[]The parts lying outside the polygon, in order along this segment.
Returns
- bool
true if the polygon boundary crosses this segment; otherwise, false.
TrySplitBy(GeoPolygon2, out GeoLine2[], out GeoLine2[], Tolerance)
Splits this segment against a polygon, sorting the parts by which side of its boundary they fall on, within tolerance.
public bool TrySplitBy(GeoPolygon2 cutter, out GeoLine2[] inside, out GeoLine2[] outside, Tolerance tolerance)
Parameters
cutterGeoPolygon2The polygon to split against.
insideGeoLine2[]The parts lying inside the polygon, in order along this segment.
outsideGeoLine2[]The parts lying outside the polygon, in order along this segment.
toleranceToleranceThe tolerance.
Returns
- bool
true if the polygon boundary crosses this segment; otherwise, false.
TrySplitBy(GeoLine2[], out GeoLine2[])
Splits this segment everywhere a list of cutting line segments crosses it, using the default tolerance.
public bool TrySplitBy(GeoLine2[] cutters, out GeoLine2[] pieces)
Parameters
cuttersGeoLine2[]The cutting line segments.
piecesGeoLine2[]The resulting pieces in order along this segment.
Returns
- bool
true if this segment was split by at least one cutter; otherwise, false.
TrySplitBy(GeoLine2[], out GeoLine2[], Tolerance)
Splits this segment everywhere a list of cutting line segments crosses it, within tolerance.
public bool TrySplitBy(GeoLine2[] cutters, out GeoLine2[] pieces, Tolerance tolerance)
Parameters
cuttersGeoLine2[]The cutting line segments.
piecesGeoLine2[]The resulting pieces in order along this segment.
toleranceToleranceThe tolerance.
Returns
- bool
true if this segment was split by at least one cutter; otherwise, false.
TrySplitBy(GeoPolyline2, out GeoLine2[])
Splits this segment everywhere a cutting polyline crosses it, using the default tolerance.
public bool TrySplitBy(GeoPolyline2 cutter, out GeoLine2[] pieces)
Parameters
cutterGeoPolyline2The cutting polyline.
piecesGeoLine2[]The resulting pieces in order along this segment.
Returns
- bool
true if this segment was split by the polyline; otherwise, false.
TrySplitBy(GeoPolyline2, out GeoLine2[], Tolerance)
Splits this segment everywhere a cutting polyline crosses it, within tolerance.
public bool TrySplitBy(GeoPolyline2 cutter, out GeoLine2[] pieces, Tolerance tolerance)
Parameters
cutterGeoPolyline2The cutting polyline.
piecesGeoLine2[]The resulting pieces in order along this segment.
toleranceToleranceThe tolerance.
Returns
- bool
true if this segment was split by the polyline; otherwise, false.
TrySplitBy(GeoPoint2[], out GeoLine2[])
Splits this segment everywhere a list of points lies on it, using the default tolerance.
public bool TrySplitBy(GeoPoint2[] points, out GeoLine2[] pieces)
Parameters
pointsGeoPoint2[]The points to split at.
piecesGeoLine2[]The resulting pieces in order along this segment.
Returns
- bool
true if this segment was split; otherwise, false.
TrySplitBy(GeoPoint2[], out GeoLine2[], Tolerance)
Splits this segment everywhere a list of points lies on it, within tolerance.
public bool TrySplitBy(GeoPoint2[] points, out GeoLine2[] pieces, Tolerance tolerance)
Parameters
pointsGeoPoint2[]The points to split at.
piecesGeoLine2[]The resulting pieces in order along this segment.
toleranceToleranceThe tolerance.
Returns
- bool
true if this segment was split; otherwise, false.
TrySplitBy(GeoPolygon2[], out GeoLine2[], out GeoLine2[])
Splits this segment 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 GeoLine2[] inside, out GeoLine2[] outside)
Parameters
cuttersGeoPolygon2[]The polygons to split against.
insideGeoLine2[]The parts lying inside the polygons, in order along this segment.
outsideGeoLine2[]The parts lying outside the polygons, in order along this segment.
Returns
- bool
true if at least one polygon boundary crosses this segment; otherwise, false.
TrySplitBy(GeoPolygon2[], out GeoLine2[], out GeoLine2[], Tolerance)
Splits this segment 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 GeoLine2[] inside, out GeoLine2[] outside, Tolerance tolerance)
Parameters
cuttersGeoPolygon2[]The polygons to split against.
insideGeoLine2[]The parts lying inside the polygons, in order along this segment.
outsideGeoLine2[]The parts lying outside the polygons, in order along this segment.
toleranceToleranceThe tolerance.
Returns
- bool
true if at least one polygon boundary crosses this segment; otherwise, false.
TrySplitBy(GeoPolyline2[], out GeoLine2[])
Splits this segment everywhere a list of polylines crosses it, using the default tolerance.
public bool TrySplitBy(GeoPolyline2[] cutters, out GeoLine2[] pieces)
Parameters
cuttersGeoPolyline2[]The cutting polylines.
piecesGeoLine2[]The resulting pieces in order along this segment.
Returns
- bool
true if at least one polyline crosses this segment; otherwise, false.
TrySplitBy(GeoPolyline2[], out GeoLine2[], Tolerance)
Splits this segment everywhere a list of polylines crosses it, within tolerance.
public bool TrySplitBy(GeoPolyline2[] cutters, out GeoLine2[] pieces, Tolerance tolerance)
Parameters
cuttersGeoPolyline2[]The cutting polylines.
piecesGeoLine2[]The resulting pieces in order along this segment.
toleranceToleranceThe tolerance.
Returns
- bool
true if at least one polyline crosses this segment; otherwise, false.