public class Curve extends Mesh
Curve
is a visual, line-based representation of a Spline
.
The underlying Spline will be sampled N times where N is the number of
segments as specified in the constructor. Each segment will represent one
line in the generated mesh.Modifier | Constructor and Description |
---|---|
protected |
Curve()
Serialization only.
|
|
Curve(Spline spline,
int nbSubSegments)
Create a curve mesh from a Spline
|
|
Curve(Vector3f[] controlPoints,
int nbSubSegments)
Create a curve mesh.
|
Modifier and Type | Method and Description |
---|---|
float |
getLength()
This method returns the length of the curve.
|
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
protected Curve()
public Curve(Vector3f[] controlPoints, int nbSubSegments)
controlPoints
- the control points to use to create this curvenbSubSegments
- the number of subsegments between the control pointspublic Curve(Spline spline, int nbSubSegments)
spline
- the spline to usenbSubSegments
- the number of subsegments between the control points