public class NurbsDirection
extends java.lang.Object
NurbsSurface
has two direction, the NurbsSurface.getU()
and NurbsSurface.getV()
, the NurbsDirection
defines data for each direction.
A direction is actually a NURBS curve, that means it's also defined by its getOrder()
, a getKnotVectors()
, and a set of weighted control points(defined in NurbsSurface
).Constructor and Description |
---|
NurbsDirection() |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Gets the count of control points in current direction.
|
int |
getDivisions()
Gets the number of divisions between adjacent control points in current direction.
|
java.util.List<java.lang.Double> |
getKnotVectors()
Gets the knot vector, it is a sequence of parameter values that determines where and how the control points affect the NURBS curve.
|
java.util.List<java.lang.Integer> |
getMultiplicity()
Gets the multiplicity.
|
int |
getOrder()
Gets the order of a NURBS curve, it defines the number of nearby control points that influence any given point on the curve.
|
NurbsType |
getType()
Gets the type of the current direction.
|
void |
setCount(int value)
Sets the count of control points in current direction.
|
void |
setDivisions(int value)
Sets the number of divisions between adjacent control points in current direction.
|
void |
setOrder(int value)
Sets the order of a NURBS curve, it defines the number of nearby control points that influence any given point on the curve.
|
void |
setType(NurbsType value)
Sets the type of the current direction.
|
public java.util.List<java.lang.Double> getKnotVectors()
public java.util.List<java.lang.Integer> getMultiplicity()
public int getOrder()
public void setOrder(int value)
value
- New valuepublic int getDivisions()
public void setDivisions(int value)
value
- New valuepublic NurbsType getType()
public void setType(NurbsType value)
value
- New valuepublic int getCount()
public void setCount(int value)
value
- New value