public class Surface extends Mesh
Modifier and Type | Method and Description |
---|---|
static Surface |
createNurbsSurface(java.util.List<java.util.List<Vector4f>> controlPoints,
java.util.List<java.lang.Float>[] nurbKnots,
int uSegments,
int vSegments,
int basisUFunctionDegree,
int basisVFunctionDegree)
This method creates a NURBS surface.
|
static Surface |
createNurbsSurface(java.util.List<java.util.List<Vector4f>> controlPoints,
java.util.List<java.lang.Float>[] nurbKnots,
int uSegments,
int vSegments,
int basisUFunctionDegree,
int basisVFunctionDegree,
boolean smooth)
This method creates a NURBS surface.
|
int |
getBasisUFunctionDegree()
This method returns the degree of basis U function.
|
int |
getBasisVFunctionDegree()
This method returns the degree of basis V function.
|
java.util.List<java.util.List<Vector4f>> |
getControlPoints() |
java.util.List<java.lang.Float> |
getKnots(int dim)
This method returns the knots for specified dimension (U knots - value: '0',
V knots - value: '1').
|
Spline.SplineType |
getType()
This method returns the type of the surface.
|
int |
getUControlPointsAmount()
This method returns the amount of U control points.
|
int |
getVControlPointsAmount()
This method returns the amount of V control points.
|
addMorphTarget, clearBuffer, clearCollisionData, clone, cloneFields, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getInstanceCount, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getMorphIndex, getMorphTarget, getMorphTargetNames, getMorphTargets, getNumLodLevels, getPatchVertexCount, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, hasMorphTargets, isAnimated, isAnimatedByBone, isAnimatedByJoint, jmeClone, prepareForAnim, read, removeMorphTarget, removeMorphTarget, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPatchVertexCount, setStatic, setStreamed, updateBound, updateCounts, write
public static final Surface createNurbsSurface(java.util.List<java.util.List<Vector4f>> controlPoints, java.util.List<java.lang.Float>[] nurbKnots, int uSegments, int vSegments, int basisUFunctionDegree, int basisVFunctionDegree)
controlPoints
- space control pointsnurbKnots
- knots of the surfaceuSegments
- the amount of U segmentsvSegments
- the amount of V segmentsbasisUFunctionDegree
- the degree of basis U functionbasisVFunctionDegree
- the degree of basis V functionpublic static final Surface createNurbsSurface(java.util.List<java.util.List<Vector4f>> controlPoints, java.util.List<java.lang.Float>[] nurbKnots, int uSegments, int vSegments, int basisUFunctionDegree, int basisVFunctionDegree, boolean smooth)
controlPoints
- space control pointsnurbKnots
- knots of the surfaceuSegments
- the amount of U segmentsvSegments
- the amount of V segmentsbasisUFunctionDegree
- the degree of basis U functionbasisVFunctionDegree
- the degree of basis V functionsmooth
- true for a smooth meshpublic java.util.List<java.util.List<Vector4f>> getControlPoints()
public int getUControlPointsAmount()
public int getVControlPointsAmount()
public int getBasisUFunctionDegree()
public int getBasisVFunctionDegree()
public java.util.List<java.lang.Float> getKnots(int dim)
dim
- an integer specifying if the U or V knots are requiredpublic Spline.SplineType getType()