Table of Contents

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

point GeoPoint2

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

first GeoPolyline2

The piece holding the start point.

second GeoPolyline2

The 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

point GeoPoint2

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

first GeoPolyline2

The piece holding the start point.

second GeoPolyline2

The piece holding the end point.

tolerance Tolerance

The 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

cutter GeoLine2

The cutting line segment.

pieces GeoPolyline2[]

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

cutter GeoLine2

The cutting line segment.

pieces GeoPolyline2[]

The pieces in order along this polyline if split succeeds.

tolerance Tolerance

The 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

points GeoPoint2[]

The points to split at.

pieces GeoPolyline2[]

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

points GeoPoint2[]

The points to split at.

pieces GeoPolyline2[]

The resulting pieces in order along this polyline.

tolerance Tolerance

The 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

cutters GeoLine2[]

The cutting line segments.

pieces GeoPolyline2[]

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

cutters GeoLine2[]

The cutting line segments.

pieces GeoPolyline2[]

The resulting pieces in order along this polyline.

tolerance Tolerance

The 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

cutters GeoPolyline2[]

The cutting polylines.

pieces GeoPolyline2[]

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

cutters GeoPolyline2[]

The cutting polylines.

pieces GeoPolyline2[]

The resulting pieces in order along this polyline.

tolerance Tolerance

The 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

cutters GeoPolygon2[]

The polygons to split against.

inside GeoPolyline2[]

The sub-polylines lying inside the polygons, in order along this polyline.

outside GeoPolyline2[]

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

cutters GeoPolygon2[]

The polygons to split against.

inside GeoPolyline2[]

The sub-polylines lying inside the polygons, in order along this polyline.

outside GeoPolyline2[]

The sub-polylines lying outside the polygons, in order along this polyline.

tolerance Tolerance

The 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

cutter GeoPolygon2

The polygon to split against.

inside GeoPolyline2[]

The sub-polylines lying inside the polygon, in order along this polyline.

outside GeoPolyline2[]

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

cutter GeoPolygon2

The polygon to split against.

inside GeoPolyline2[]

The sub-polylines lying inside the polygon, in order along this polyline.

outside GeoPolyline2[]

The sub-polylines lying outside the polygon, in order along this polyline.

tolerance Tolerance

The tolerance.

Returns

bool

true if the polygon boundary crosses this polyline; otherwise, false.