Table of Contents

Method GetSplitCurves

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

GetSplitCurves(IReadOnlyList<double>)

Gets the pieces the spline is cut into at parameters, as AutoCAD's GetSplitCurves: splines of the same look in no file, each the part of the spline between two cuts exactly, its knots those of the spline there with the cut standing as many times as the degree and one at its ends; an open spline 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 start to the first, given whole where it is cut at fewer than two places. A parameter at an end or within the point tolerance along the spline of another cuts nothing. A spline of fit data gives pieces whose fit points are their points at their knots, of parameters of their own (70 1288), as AutoCAD 2021 gave its cubic through five points cut at 43.36 two pieces of 3 and 4 such fit points, the first leaving along the spline's derivative (1.11, -0.34, 0) (its D32b run).

public override IReadOnlyList<DxfCurve> GetSplitCurves(IReadOnlyList<double> parameters)

Parameters

parameters IReadOnlyList<double>

The knot values to cut at, from StartParam to EndParam.

Returns

IReadOnlyList<DxfCurve>

The pieces, in the order of the spline.

Exceptions

ArgumentNullException

Thrown when the parameters are null.

ArgumentOutOfRangeException

Thrown when a parameter is past either end.

InvalidOperationException

Thrown when the spline has no data that make a spline.