Table of Contents

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

degree int

The degree.

rational bool

Whether the weights count.

closed bool

Whether the spline is closed.

periodic bool

Whether it is periodic.

controlPoints IEnumerable<GeoPoint3>

The control points, in the world.

knots IEnumerable<double>

The knots.

weights IEnumerable<double>

The weights, one to each control point; null or empty for none.

controlPointTolerance double

The tolerance of the control points (group 43 of a SPLINE).

knotTolerance double

The tolerance of the knots (group 42).

Exceptions

ArgumentNullException

Thrown when the control points or the knots are null.