Struct DxfFitData
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
The fit data of a DxfSpline in one value, as AutoCAD's FitData: the points it passes through, its
degree, the tolerance it is fitted within, the directions it leaves its first point and reaches its last in, and how its
parameters are given.
public struct DxfFitData
- Inherited Members
Remarks
It is what FitData gives and takes: a spline through (0, 0, 0), (10, 5, 0) and (20, 0, 0) of
degree 3, fitted within nought and with no tangents, is new DxfFitData(points, 3, 0). The points are copied when the
value is made and given out read-only; the other parts are set as AutoCAD's are.
Constructors
- DxfFitData(IEnumerable<GeoPoint3>, int, double)
Initializes the fit data of a spline through points, as AutoCAD's fit data of points, a degree and a tolerance: no tangents at the ends, its parameters by the chord, not periodic.
Properties
- Degree
Gets or sets the degree, as AutoCAD's
Degree.
- EndTangent
Gets or sets the direction the spline reaches its last point in, as AutoCAD's
EndTangent: read where TangentsExist is true.
- FitTolerance
Gets or sets the tolerance the spline is fitted within, as AutoCAD's
FitTolerance.
- KnotParam
Gets or sets how the points are given their parameters, as AutoCAD's
KnotParam.
- Periodic
Gets or sets whether the spline runs round on itself through its points, as AutoCAD's
Periodic: of a SPLINE, the flag 2 of its group 70, as Periodic.
- StartTangent
Gets or sets the direction the spline leaves its first point in, as AutoCAD's
StartTangent: read where TangentsExist is true.
- TangentsExist
Gets or sets whether the tangents at the ends are given, as AutoCAD's
TangentsExist.
Methods
- GetFitPoints()
Gets the fit points, in the world, as AutoCAD's
GetFitPoints.
- IsEqualTo(DxfFitData)
Gets whether this data is the same as another's within Default, as AutoCAD's
IsEqualTo: the same degree, flags and counts, and points, tangents and tolerance each within the tolerance.
- IsEqualTo(DxfFitData, Tolerance)
Gets whether this data is the same as another's within a tolerance, as AutoCAD's
IsEqualTo.
- ToString()
Gives the data as a line for debugging: its degree and count of points.