NurbsCurve

Overview

NurbsCurve is a class in Aspose.3D FOSS for Java. Inherits from: Curve.

NURBS curve is a curve represented by NURBS(Non-uniform rational basis spline), A NURBS curve is defined by its getOrder(), a set of weighted Geometry.getControlPoints() and a getKnotVectors() The w

This class provides 42 methods for working with NurbsCurve objects in Java programs. Available methods include: A3DObject, Curve, Entity, NurbsCurve, SceneObject, evaluate, evaluateAt, findProperty, getBoundingBox, getColor, getControlPoints, getCurveType, and 25 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: boundingBox, color, controlPoints, curveType, degree, dimension, and 11 more.

Properties

NameTypeAccessDescription
controlPointsList<Vector4>ReadGets all control points.
multiplicityList<Integer>ReadGets the multiplicity.
orderintRead/WriteGets the order of a NURBS curve, it defines the number of nearby control points that influence any given point on the curve.
degreeintRead/WriteGets the degree of a NURBS curve, the degree are defined as Order - 1.
dimensionCurveDimensionRead/WriteGets the curve’s dimension.
curveTypeNurbsTypeRead/WriteGets the type of the curve.
knotVectorsList<Double>ReadGets the knot vector, it is a sequence of parameter values that determines where and how the control points affect the NURBS curve.
rationalbooleanRead/WriteGets whether it is rational.
colorVector3Read/WriteGets or sets the color of the line, default value is white(1, 1, 1).
entityRendererKeyEntityRendererKeyReadGets the entity renderer key for this entity.
parentNodeNodeRead/WriteGets or sets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanRead/WriteGets or sets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
sceneSceneReadGets the scene.
nameStringRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
getControlPoints() → List<Vector4>Gets all control points.
NurbsCurve()Initializes a new instance of the NurbsCurve class.
NurbsCurve(name: String)Initializes a new instance of the NurbsCurve class.
getMultiplicity() → List<Integer>Gets the multiplicity.
getOrder() → intGets the order of a NURBS curve, it defines the number of nearby control points that influence any given point on the curve.
setOrder(value: int)Sets the order value.
getDegree() → intGets the degree of a NURBS curve, the degree are defined as Order - 1.
setDegree(value: int)Sets the degree value.
getDimension() → CurveDimensionGets the curve’s dimension.
setDimension(value: CurveDimension)Sets the dimension value.
getCurveType() → NurbsTypeGets the type of the curve.
setCurveType(value: NurbsType)Sets the curve type value.
getKnotVectors() → List<Double>Gets the knot vector, it is a sequence of parameter values that determines where and how the control points affect the NURBS curve.
getRational() → booleanGets whether it is rational.
setRational(value: boolean)Sets the rational value.
evaluate(steps: int) → Vector4[]Not implemented in the FOSS edition — throws at runtime. Evaluate the NURBS curve
@param steps The evaluation frequency between two neighbor knots, default value is 20
@return Points in the curve
/
evaluate() → Vector4[]Evaluate the NURBS curve
@return Points in the curve
/
evaluateAt(u: double) → Vector4Not implemented in the FOSS edition — throws at runtime. Evaluate the curve’s point at specified position
@param u The position in the curve, between 0 and 1
@return The point at the specified position
/
getColor() → Vector3Gets or sets the color of the line, default value is white(1, 1, 1).
setColor(color: Vector3)Sets the color value.
Curve()Constructor.
getEntityRendererKey() → EntityRendererKeyGets the entity renderer key for this entity.
Entity(name: String)Calls Entity(name) on this NurbsCurve instance.
getParentNode() → NodeReturns the parent node.
setParentNode(value: Node)Gets all control points.
getParentNodes() → ArrayList<Node>Returns the parent nodes.
getExcluded() → booleanReturns the excluded.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox() → BoundingBoxReturns the bounding box.
SceneObject()Calls SceneObject on this NurbsCurve instance.
SceneObject(name: String)NURBS curve is a curve represented by NURBS(Non-uniform rational basis spline), A NURBS curve is defined by its getOrder(), a set of weighted Geometry.getControlPoints() and a getKnotVectors() The w component in control point is used as control point’s weight, whatever it is a CurveDimension.TWO_DIMENSIONAL or CurveDimension.THREE_DIMENSIONAL
getScene() → SceneReturns the scene.
A3DObject()Calls A3DObject on this NurbsCurve instance.
A3DObject(name: String)Calls A3DObject(name) on this NurbsCurve instance.
getName() → StringReturns the name.
setName(name: String)Sets the name value.
getProperties() → PropertyCollectionReturns the properties.
findProperty(name: String) → PropertyInitializes a new instance of the NurbsCurve class.
getProperty(name: String) → ObjectCalls getProperty(name) on this NurbsCurve instance.
setProperty(name: String, value: Object)Initializes a new instance of the NurbsCurve class.
removeProperty(name: String) → booleanCalls removeProperty(name) on this NurbsCurve instance.
removeProperty(property: Property) → booleanCalls removeProperty(property) on this NurbsCurve instance.

See Also

 English