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, as a
DxfPolyline cuts its own: polylines of the plane of the same look in no file, each segment cut keeping
the part of its arc and its widths read off along it. A fitted polyline is cut along the vertices it is drawn
through, and its pieces are straight polylines of those.
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.