Method TrySplitAtDistance
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TrySplitAtDistance(double, out GeoPolyline3[])
Splits this polyline at an arc length from its start, using the default tolerance.
public bool TrySplitAtDistance(double distance, out GeoPolyline3[] pieces)
Parameters
distancedoublepiecesGeoPolyline3[]
Returns
TrySplitAtDistance(double, out GeoPolyline3[], Tolerance)
Splits this polyline at an arc length from its start, within a tolerance.
public bool TrySplitAtDistance(double distance, out GeoPolyline3[] pieces, Tolerance tolerance)
Parameters
distancedoublepiecesGeoPolyline3[]toleranceTolerance
Returns
TrySplitAtDistance(double, out GeoPolyline3, out GeoPolyline3)
Splits the chain at an arc length from its start into the piece before and the piece after, using the default tolerance.
public bool TrySplitAtDistance(double distance, out GeoPolyline3 first, out GeoPolyline3 second)
Parameters
distancedoublefirstGeoPolyline3secondGeoPolyline3
Returns
TrySplitAtDistance(double, out GeoPolyline3, out GeoPolyline3, Tolerance)
Splits the chain at an arc length from its start into the piece before and the piece after, within a tolerance.
public bool TrySplitAtDistance(double distance, out GeoPolyline3 first, out GeoPolyline3 second, Tolerance tolerance)
Parameters
distancedoubleHow far along the chain to cut.
firstGeoPolyline3The piece holding the start; null when the method returns false.
secondGeoPolyline3The piece holding the end; null 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.