|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.Mesh
com.jme3.scene.shape.Curve
public class Curve
A
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme3.scene.Mesh |
---|
Mesh.Mode |
Constructor Summary | |
---|---|
Curve()
Serialization only. |
|
Curve(Spline spline,
int nbSubSegments)
Create a curve mesh from a Spline |
|
Curve(Vector3f[] controlPoints,
int nbSubSegments)
Create a curve mesh. |
Method Summary | |
---|---|
float |
getLength()
This method returns the length of the curve. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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 pointsMethod Detail |
---|
public float getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |