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

NameTypeAccessDescription
ControlPointsIArrayList<Vector4>ReadGets the control points.
MultiplicityIArrayList<int>ReadGets the multiplicity.
OrderintRead/WriteGets or sets the order.
DegreeintRead/WriteGets or sets the degree.
DimensionCurveDimensionRead/WriteGets or sets the dimension.
CurveTypeNurbsTypeRead/WriteGets or sets the curve type.
KnotVectorsIArrayList<double>ReadGets the knot vectors.
RationalboolRead/WriteGets or sets the rational.
ColorVector3Read/WriteGets or sets the color.
ExcludedboolRead/WriteGets or sets the excluded.
ParentNodesList<Node>ReadGets the parent nodes.
ParentNodeNodeRead/WriteGets or sets the parent node.
SceneSceneReadGets the scene.
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the properties.

Methods

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

See Also