Method TrySplitAtDistance
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TrySplitAtDistance(double, out GeoPolyline2, out GeoPolyline2)
Splits this polyline at an arc length measured from its first vertex, using the default tolerance.
public bool TrySplitAtDistance(double distance, out GeoPolyline2 first, out GeoPolyline2 second)
Parameters
distancedoubleArc length from the first vertex.
firstGeoPolyline2The piece holding the start point.
secondGeoPolyline2The piece holding the end point.
Returns
- bool
true if the polyline was split; otherwise, false.
TrySplitAtDistance(double, out GeoPolyline2, out GeoPolyline2, Tolerance)
Splits this polyline at an arc length measured from its first vertex, within tolerance.
public bool TrySplitAtDistance(double distance, out GeoPolyline2 first, out GeoPolyline2 second, Tolerance tolerance)
Parameters
distancedoubleArc length from the first vertex.
firstGeoPolyline2The piece holding the start point.
secondGeoPolyline2The piece holding the end point.
toleranceToleranceThe tolerance.
Returns
- bool
true if the polyline was split; otherwise, false.
TrySplitAtDistance(double, out GeoPolyline2[])
Splits the chain at an arc length from its start, the pieces as a list, using the default tolerance.
public bool TrySplitAtDistance(double distance, out GeoPolyline2[] pieces)
Parameters
distancedoublepiecesGeoPolyline2[]
Returns
TrySplitAtDistance(double, out GeoPolyline2[], Tolerance)
Splits the chain at an arc length from its start, the pieces as a list, within a tolerance.
public bool TrySplitAtDistance(double distance, out GeoPolyline2[] pieces, Tolerance tolerance)
Parameters
distancedoubleHow far along the chain to cut.
piecesGeoPolyline2[]The two pieces in order; the chain whole when the method returns false.
toleranceToleranceThe tolerance.
Returns
- bool
true when the chain was cut in two; false when the distance falls at or beyond an end.