Method SplitAtDistances
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
SplitAtDistances(IEnumerable<double>)
Splits this polyline at several arc lengths at once, using the default tolerance.
public GeoPolyline3[] SplitAtDistances(IEnumerable<double> distances)
Parameters
distancesIEnumerable<double>
Returns
SplitAtDistances(IEnumerable<double>, Tolerance)
Splits this polyline at several arc lengths at once, within a tolerance.
public GeoPolyline3[] SplitAtDistances(IEnumerable<double> distances, Tolerance tolerance)
Parameters
distancesIEnumerable<double>toleranceTolerance
Returns
Remarks
Every piece starts where the one before it ended, on the polyline: at a hundredth, the polyline from (0, 0, 0) to (10, 0, 0) and on to (10, 10, 0) cut at 9.995 comes back as two pieces meeting at the corner, where the second started at (10, -0.005, 0), off the polyline. The last piece ends where the polyline does: a last leg no longer than the tolerance takes the corner before it, where the piece ended at that corner. See SplitAtDistances(GeoPolyline3, IEnumerable<double>, Tolerance).