Class NurbsCurve
Class defining a NURBS curve in three-dimensional euclidean space.
Inherited Members
Namespace: BRIDGES.Geometry.Euclidean3D
Assembly: BRIDGES.dll
Syntax
public class NurbsCurve : BSplineCurve<Point>
Constructors
| Improve this Doc View SourceNurbsCurve(Int32, IEnumerable<Point>)
Initialises a new instance of NurbsCurve class.
Declaration
public NurbsCurve(int degree, IEnumerable<Point> controlPoints)
Parameters
Type | Name | Description |
---|---|---|
Int32 | degree | Degree of the interpolating BSpline polynomial basis. |
IEnumerable<Point> | controlPoints | Control points of the NurbsCurve. |
NurbsCurve(Int32, IEnumerable<Double>, IEnumerable<Point>, IEnumerable<Double>)
Initialises a new instance of NurbsCurve class by defining its fields.
Declaration
public NurbsCurve(int degree, IEnumerable<double> knotVector, IEnumerable<Point> controlPoints, IEnumerable<double> weights)
Parameters
Type | Name | Description |
---|---|---|
Int32 | degree | Degree of the interpolating BSpline polynomial basis. |
IEnumerable<Double> | knotVector | Knot vector of the interpolating BSpline polynomial basis. |
IEnumerable<Point> | controlPoints | Control points of the NurbsCurve. |
IEnumerable<Double> | weights | Weights of the control points. |
Properties
| Improve this Doc View SourceEndPoint
Class defining a NURBS curve in three-dimensional euclidean space.
Declaration
public Point EndPoint { get; }
Property Value
Type | Description |
---|---|
Point |
StartPoint
Class defining a NURBS curve in three-dimensional euclidean space.
Declaration
public Point StartPoint { get; }
Property Value
Type | Description |
---|---|
Point |
Methods
| Improve this Doc View SourcePointAt(Double, CurveParameterFormat)
Class defining a NURBS curve in three-dimensional euclidean space.
Declaration
public Point PointAt(double parameter, CurveParameterFormat format)
Parameters
Type | Name | Description |
---|---|---|
Double | parameter | |
CurveParameterFormat | format |
Returns
Type | Description |
---|---|
Point |
ToProjective(IEnumerable<Point>, IEnumerable<Double>)
Converts the control points for the current NurbsCurve.
Declaration
protected static IEnumerable<Point> ToProjective(IEnumerable<Point> controlPoints, IEnumerable<double> weights)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Point> | controlPoints | Point to convert. |
IEnumerable<Double> | weights | Weigths to include in the conversion. |
Returns
Type | Description |
---|---|
IEnumerable<Point> | The Point resulting from the conversion. |
ToProjective(IEnumerable<Point>)
Converts the control points for the current NurbsCurve.
Declaration
protected static IEnumerable<Point> ToProjective(IEnumerable<Point> controlPoints)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Point> | controlPoints | Point to convert. |
Returns
Type | Description |
---|---|
IEnumerable<Point> | The Point resulting from the conversion. |