Constructor DxfNurbsData
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
DxfNurbsData(int, bool, bool, bool, IEnumerable<GeoPoint3>, IEnumerable<double>, IEnumerable<double>, double, double)
Initializes the NURBS data of a spline, as AutoCAD's new NurbsData(degree, rational, closed, periodic,
controlPoints, knots, weights, controlPointTolerance, knotTolerance).
public DxfNurbsData(int degree, bool rational, bool closed, bool periodic, IEnumerable<GeoPoint3> controlPoints, IEnumerable<double> knots, IEnumerable<double> weights, double controlPointTolerance, double knotTolerance)
Parameters
degreeintThe degree.
rationalboolWhether the weights count.
closedboolWhether the spline is closed.
periodicboolWhether it is periodic.
controlPointsIEnumerable<GeoPoint3>The control points, in the world.
knotsIEnumerable<double>The knots.
weightsIEnumerable<double>The weights, one to each control point; null or empty for none.
controlPointTolerancedoubleThe tolerance of the control points (group 43 of a SPLINE).
knotTolerancedoubleThe tolerance of the knots (group 42).
Exceptions
- ArgumentNullException
Thrown when the control points or the knots are null.