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

NameTypeAccessDescription
ControlPointsIArrayList<Vector4>ReadGets all control points
MultiplicityIArrayList<int>ReadGets the multiplicity.
OrderintRead/WriteGets or sets the order of a NURBS curve, it defines the number of nearby control points that influence any given point on the curve.
DegreeintRead/WriteGets or sets the degree of a NURBS curve, the degree are defined as Order - 1
DimensionCurveDimensionRead/WriteGets or sets the curve’s dimension.
CurveTypeNurbsTypeRead/WriteGets or sets the type of the curve.
KnotVectorsIArrayList<double>ReadGets the knot vector, it is a sequence of parameter values that determines where and how the control points affect the NURBS curve.
RationalboolRead/WriteGets or sets whether it is rational, this value indicates whether this is rational spline or non-rational spline.
ColorVector3Read/WriteGets or sets the color of the line, default value is white(1, 1, 1)
ExcludedboolRead/WriteGets or sets whether to exclude this entity during exporting.
ParentNodesList<Node>ReadGets all parent nodes, an entity can be attached to multiple parent nodes for geometry instancing
ParentNodeNodeRead/WriteGets or sets the first parent node, if set the first parent node, this entity will be detached from other parent nodes.
SceneSceneReadGets the scene that this object belongs to
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the collection of all properties.

Methods

SignatureDescription
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.

See Also

 English