Method GetSplitCurves
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
GetSplitCurves(IReadOnlyList<double>)
Gets the pieces the polyline is cut into at parameters, as AutoCAD's GetSplitCurves: 3D polylines of the same
look in no file, an open one from its start to the first parameter, on to the next and to its end, a closed one from
each to the next and from the last on round its first vertex to the first, given whole where it is cut at fewer than
two places; (0, 0, 0), (3, 4, 0), (3, 4, 12) cut at 1.5 is (0, 0, 0), (3, 4, 0), (3, 4, 6) and (3, 4, 6), (3, 4, 12). A
parameter at an end or within the point tolerance along the polyline of another cuts nothing; a fitted polyline is
cut along the vertices it is drawn through, and its pieces are straight.
public override IReadOnlyList<DxfCurve> GetSplitCurves(IReadOnlyList<double> parameters)
Parameters
parametersIReadOnlyList<double>The parameters to cut at, from nought to EndParam.
Returns
- IReadOnlyList<DxfCurve>
The pieces, in the order of the polyline.
Exceptions
- ArgumentNullException
Thrown when the parameters are null.
- ArgumentOutOfRangeException
Thrown when a parameter is past either end.
- InvalidOperationException
Thrown when the polyline has fewer than two vertices drawn.