Class NurbsCurve
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public class NurbsCurve : BaseCurve
Constructors
| Improve this Doc View SourceNurbsCurve(List<Point4d>, Int32)
Initializes a new instance of NurbsCurve by it's control points and degree.
Declaration
public NurbsCurve(List<Point4d> controlPoints, int degree)
Parameters
Type | Name | Description |
---|---|---|
List<Point4d> | controlPoints | The control points to create the curve with. |
System.Int32 | degree | The desired degree of the curve. Degree cannot be > (ControlPoints - 1) |
Fields
| Improve this Doc View SourceControlPoints
The control points of the nurbs curve.
Declaration
public List<Point4d> ControlPoints
Field Value
Type | Description |
---|---|
List<Point4d> |
Degree
The degree of the curve.
Declaration
public int Degree
Field Value
Type | Description |
---|---|
System.Int32 |
Knots
The nurbs curve knot vector.
Declaration
public List<double> Knots
Field Value
Type | Description |
---|---|
List<System.Double> |
Properties
| Improve this Doc View SourceEndPoint
The end point of the curve.
Declaration
public Point3d EndPoint { get; }
Property Value
Type | Description |
---|---|
Point3d |
EndTangent
The tangent vector at the end of the curve.
Declaration
public Vector3d EndTangent { get; }
Property Value
Type | Description |
---|---|
Vector3d |
StartPoint
The start point of the curve.
Declaration
public Point3d StartPoint { get; }
Property Value
Type | Description |
---|---|
Point3d |
StartTangent
The tangent vector at the start of the curve.
Declaration
public Vector3d StartTangent { get; }
Property Value
Type | Description |
---|---|
Vector3d |
Methods
| Improve this Doc View SourceBinormalAt(Double)
Compute a binormal vector along the curve at a specified parameter.
Declaration
public override Vector3d BinormalAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter. |
Returns
Type | Description |
---|---|
Vector3d | Binormal vector at the parameter specified. |
Overrides
| Improve this Doc View SourceCheckValidity()
Checks the validity of the curve.
Declaration
public override bool CheckValidity()
Returns
Type | Description |
---|---|
System.Boolean | True if valid. |
Overrides
| Improve this Doc View SourceComputeLength()
Computes the length of the curve.
Declaration
protected override double ComputeLength()
Returns
Type | Description |
---|---|
System.Double | Length as number. |
Overrides
| Improve this Doc View SourceFrameAt(Double)
Compute the perpendicular frame along the curve at a specified parameter.
Declaration
public override Plane FrameAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter. |
Returns
Type | Description |
---|---|
Plane | Perpendicular plane at the parameter specified. |
Overrides
| Improve this Doc View SourceNormalAt(Double)
Compute normal vector along the curve at a specified parameter.
Declaration
public override Vector3d NormalAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter. |
Returns
Type | Description |
---|---|
Vector3d | Normal vector at the parameter specified. |
Overrides
| Improve this Doc View SourcePointAt(Double)
Compute a point along the curve at a specified parameter.
Declaration
public override Point3d PointAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter. |
Returns
Type | Description |
---|---|
Point3d | Point at the parameter specified. |
Overrides
| Improve this Doc View SourceTangentAt(Double)
Compute the tangent vector along the curve at a specified parameter.
Declaration
public override Vector3d TangentAt(double t)
Parameters
Type | Name | Description |
---|---|---|
System.Double | t | Parameter. |
Returns
Type | Description |
---|---|
Vector3d | Tangent vector at the parameter specified. |