Table of Contents

Property Spline

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Spline

Gets the spline that is exactly the curve, as AutoCAD's Spline: a new DxfSpline in no file, on layer 0 with no look of its own (give it the curve's with SetPropertiesFrom(DxfEntity)), its knots the curve's parameters at the ends of its pieces. A line is a spline of degree 1 from nought to its length; an arc, a circle and an ellipse the rational quadratic of a piece for each quarter turn or less, over their angles or parameters (a circle of radius 10 is 9 control points over 0 to 2 pi, at a quarter turn on the circle's point there, between such knots on the circle but not at the same angle); a polyline of the plane the same of its arcs and its lines, each segment over one step of its parameter, or of degree 1 where it has no arc, but one fitted with a spline the B-spline it is fitted with, as AutoCAD 2021 gives it: on its frame (the vertices of flag 16) as control points, of degree 2 or 3 as its type says, its knots one step apart, clamped where it is open and periodic where it is closed, which runs through the vertices drawn but not along the lines between them; a 3D polyline of degree 1 over its parameter; a spline its own data.

public virtual DxfSpline Spline { get; }

Property Value

DxfSpline

Exceptions

NotSupportedException

Thrown for a ray or an xline, which run without end.

InvalidOperationException

Thrown when the curve has no shape the library reads, as a line of no length.