Table of Contents

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

point GeoPoint2

The point to split at, which must lie on this segment.

first GeoLine2

The piece holding the start point.

second GeoLine2

The 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

point GeoPoint2

The point to split at, which must lie on this segment.

first GeoLine2

The piece holding the start point.

second GeoLine2

The piece holding the end point.

tolerance Tolerance

The 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

cutter GeoLine2

The cutting line segment.

first GeoLine2

The piece holding the start point.

second GeoLine2

The 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

cutter GeoLine2

The cutting line segment.

first GeoLine2

The piece holding the start point.

second GeoLine2

The piece holding the end point.

tolerance Tolerance

The 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

cutter GeoPolygon2

The polygon to split against.

inside GeoLine2[]

The parts lying inside the polygon, in order along this segment.

outside GeoLine2[]

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

cutter GeoPolygon2

The polygon to split against.

inside GeoLine2[]

The parts lying inside the polygon, in order along this segment.

outside GeoLine2[]

The parts lying outside the polygon, in order along this segment.

tolerance Tolerance

The 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

cutters GeoLine2[]

The cutting line segments.

pieces GeoLine2[]

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

cutters GeoLine2[]

The cutting line segments.

pieces GeoLine2[]

The resulting pieces in order along this segment.

tolerance Tolerance

The 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

cutter GeoPolyline2

The cutting polyline.

pieces GeoLine2[]

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

cutter GeoPolyline2

The cutting polyline.

pieces GeoLine2[]

The resulting pieces in order along this segment.

tolerance Tolerance

The 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

points GeoPoint2[]

The points to split at.

pieces GeoLine2[]

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

points GeoPoint2[]

The points to split at.

pieces GeoLine2[]

The resulting pieces in order along this segment.

tolerance Tolerance

The 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

cutters GeoPolygon2[]

The polygons to split against.

inside GeoLine2[]

The parts lying inside the polygons, in order along this segment.

outside GeoLine2[]

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

cutters GeoPolygon2[]

The polygons to split against.

inside GeoLine2[]

The parts lying inside the polygons, in order along this segment.

outside GeoLine2[]

The parts lying outside the polygons, in order along this segment.

tolerance Tolerance

The 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

cutters GeoPolyline2[]

The cutting polylines.

pieces GeoLine2[]

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

cutters GeoPolyline2[]

The cutting polylines.

pieces GeoLine2[]

The resulting pieces in order along this segment.

tolerance Tolerance

The tolerance.

Returns

bool

true if at least one polyline crosses this segment; otherwise, false.