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: 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. A segment cut keeps the part of its arc (its bulge that of the part) and its widths read off along it: the
polyline (0, 0), (10, 0), (10, 10) with a bulge of 1 on its second vertex cut at 1.5 is (0, 0), (10, 0), (15, 5) with
a bulge of 0.414 and (15, 5), (10, 10) with the same. A parameter at an end or within the point tolerance along the
polyline of another cuts nothing.
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.