NurbsCurve
Overview
NurbsCurve is a class in Aspose.3D FOSS for .NET.
Inherits from: Curve, INamedObject.
NURBS curve is a curve represented by NURBS(Non-uniform rational basis spline), A NURBS curve is defined by its control points, a set of weighted control points and a knot vector The w component in control point is used as control point’s weight, whatever it is a 2D or 3D
This class provides 12 methods for working with NurbsCurve objects in .NET programs.
Available methods include: A3DObject, Entity, Evaluate, EvaluateAt, FindProperty, GetBoundingBox, GetEntityRendererKey, GetProperty, NurbsCurve, RemoveProperty, SceneObject, SetProperty.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: Color, ControlPoints, CurveType, Degree, Dimension, Excluded, and 9 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ControlPoints | IArrayList<Vector4> | Read | Gets the control points. |
Multiplicity | IArrayList<int> | Read | Gets the multiplicity. |
Order | int | Read/Write | Gets or sets the order. |
Degree | int | Read/Write | Gets or sets the degree. |
Dimension | CurveDimension | Read/Write | Gets or sets the dimension. |
CurveType | NurbsType | Read/Write | Gets or sets the curve type. |
KnotVectors | IArrayList<double> | Read | Gets the knot vectors. |
Rational | bool | Read/Write | Gets or sets the rational. |
Color | Vector3 | Read/Write | Gets or sets the color. |
Excluded | bool | Read/Write | Gets or sets the excluded. |
ParentNodes | List<Node> | Read | Gets the parent nodes. |
ParentNode | Node | Read/Write | Gets or sets the parent node. |
Scene | Scene | Read | Gets the scene. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
NurbsCurve() | |
NurbsCurve(name: string) | The name of the NurbsCurve |
Evaluate(steps: int) | Not implemented in the FOSS edition — throws at runtime. Evaluate the NURBS curve |
EvaluateAt(u: double) | Not implemented in the FOSS edition — throws at runtime. Evaluate the curve’s point at specified position |
GetEntityRendererKey() | Gets the key of the entity renderer registered in the renderer |
Entity(name: string) | |
GetBoundingBox() | Gets the bounding box of current entity in its object space coordinate system. |
SceneObject(name: string) | |
A3DObject() | |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |