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 co
This class provides 13 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 all control points |
Multiplicity | IArrayList<int> | Read | Gets the multiplicity. |
Order | int | Read/Write | Gets or sets the order of a NURBS curve, it defines the number of nearby control points that influence any given point on the curve. |
Degree | int | Read/Write | Gets or sets the degree of a NURBS curve, the degree are defined as Order - 1 |
Dimension | CurveDimension | Read/Write | Gets or sets the curve’s dimension. |
CurveType | NurbsType | Read/Write | Gets or sets the type of the curve. |
KnotVectors | IArrayList<double> | Read | Gets the knot vector, it is a sequence of parameter values that determines where and how the control points affect the NURBS curve. |
Rational | bool | Read/Write | Gets or sets whether it is rational, this value indicates whether this is rational spline or non-rational spline. |
Color | Vector3 | Read/Write | Gets or sets the color of the line, default value is white(1, 1, 1) |
Excluded | bool | Read/Write | Gets or sets whether to exclude this entity during exporting. |
ParentNodes | List<Node> | Read | Gets all parent nodes, an entity can be attached to multiple parent nodes for geometry instancing |
ParentNode | Node | Read/Write | Gets or sets the first parent node, if set the first parent node, this entity will be detached from other parent nodes. |
Scene | Scene | Read | Gets the scene that this object belongs to |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the collection of all properties. |
Methods
| Signature | Description |
|---|---|
NurbsCurve() | Initializes a new instance of the class. |
NurbsCurve(name: string) | Initializes a new instance of the class. |
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) | Initializes a new instance of the Entity class. |
GetBoundingBox() | Gets the bounding box of current entity in its object space coordinate system. |
SceneObject(name: string) | Initialize an SceneObject with a default name |
A3DObject() | Initializes a new instance of the A3DObject class with no name. |
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. |