|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Geometry
com.jme.scene.TriMesh
com.jme.scene.shape.Extrusion
public class Extrusion
An extrusion of a 2D object (Line) along a path (List of Vector3f).
Either a convenience constructor can be used or the updateGeometry(com.jme.scene.Line, java.util.List
method. It is also capable of doing a cubic spline interpolation for a list
of supporting points
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jme.scene.TriMesh |
|---|
TriMesh.Mode |
| Nested classes/interfaces inherited from class com.jme.scene.Spatial |
|---|
Spatial.CullHint, Spatial.LightCombineMode, Spatial.NormalsMode, Spatial.TextureCombineMode |
| Field Summary |
|---|
| Fields inherited from class com.jme.scene.TriMesh |
|---|
indexBuffer, mode, triangleQuantity |
| Fields inherited from class com.jme.scene.Geometry |
|---|
binormalBuf, bound, castsShadows, colorBuf, compVect, defaultColor, displayListID, enabled, fogBuf, hasDirtyVertices, normBuf, states, tangentBuf, texBuf, vboInfo, vertBuf, vertQuantity |
| Fields inherited from class com.jme.scene.Spatial |
|---|
cullHint, frustrumIntersects, geometricalControllers, isCollidable, lightCombineMode, localRotation, localScale, localTranslation, LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, lockedMode, name, normalsMode, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
| Constructor Summary | |
|---|---|
Extrusion()
Default Constructor. |
|
Extrusion(Line shape,
java.util.List<Vector3f> path,
Vector3f up)
Convenience constructor. |
|
Extrusion(java.lang.String name)
Creates an empty named Extrusion. |
|
Extrusion(java.lang.String name,
Line shape,
java.util.List<Vector3f> path,
Vector3f up)
Convenience constructor. |
|
| Method Summary | |
|---|---|
void |
updateGeometry(Line shape,
java.util.List<Vector3f> path,
boolean closed,
Vector3f up)
Update vertex, color, index and texture buffers (0) to contain an extrusion of shape along path. |
void |
updateGeometry(Line shape,
java.util.List<Vector3f> points,
int segments,
boolean closed,
Vector3f up)
Performs cubic spline interpolation to find a path through the supporting points where the second derivative is zero. |
void |
updateGeometry(Line shape,
java.util.List<Vector3f> points,
int segments,
Vector3f up)
Performs cubic spline interpolation to find a path through the supporting points where the second derivative is zero. |
void |
updateGeometry(Line shape,
java.util.List<Vector3f> path,
Vector3f up)
Update vertex, color, index and texture buffers (0) to contain an extrusion of shape along path. |
| Methods inherited from class com.jme.scene.TriMesh |
|---|
clearBuffers, draw, findCollisions, findTriangleCollision, findTrianglePick, getIndexBuffer, getMaxIndex, getMeshAsTriangles, getMeshAsTrianglesVertices, getMode, getTriangle, getTriangle, getTriangleCount, getTriangleIndices, getVertIndex, hasCollision, hasTriangleCollision, randomPointOnTriangles, read, recalcTriangleQuantity, reconstruct, setIndexBuffer, setMode, setTriangleQuantity, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.jme.util.export.Savable |
|---|
getClassTag |
| Constructor Detail |
|---|
public Extrusion()
updateGeometry(Line, List, Vector3f),
updateGeometry(Line, List, boolean, Vector3f),
updateGeometry(Line, List, int, Vector3f),
updateGeometry(Line, List, int, boolean, Vector3f)public Extrusion(java.lang.String name)
name - nameupdateGeometry(Line, List, Vector3f),
updateGeometry(Line, List, boolean, Vector3f),
updateGeometry(Line, List, int, Vector3f),
updateGeometry(Line, List, int, boolean, Vector3f)
public Extrusion(Line shape,
java.util.List<Vector3f> path,
Vector3f up)
updateGeometry(Line, List, Vector3f).
shape - see updateGeometry(Line, List, Vector3f)path - see updateGeometry(Line, List, Vector3f)up - up vector
public Extrusion(java.lang.String name,
Line shape,
java.util.List<Vector3f> path,
Vector3f up)
updateGeometry(Line, List, Vector3f).
name - nameshape - see updateGeometry(Line, List, Vector3f)path - see updateGeometry(Line, List, Vector3f)up - up vector| Method Detail |
|---|
public void updateGeometry(Line shape,
java.util.List<Vector3f> path,
Vector3f up)
shape - an instance of Line that describes the 2D shapepath - a list of vectors that describe the path the shape should be
extrudedup - up vector
public void updateGeometry(Line shape,
java.util.List<Vector3f> path,
boolean closed,
Vector3f up)
shape - an instance of Line that describes the 2D shapepath - a list of vectors that describe the path the shape should be
extrudedclosed - true to connect first and last pointup - up vector
public void updateGeometry(Line shape,
java.util.List<Vector3f> points,
int segments,
Vector3f up)
updateGeometry(Line, List, Vector3f) with this path.
shape - an instance of Line that describes the 2D shapepoints - a list of supporting points for the spline interpolationsegments - number of resulting path segments per supporting pointup - up vector
public void updateGeometry(Line shape,
java.util.List<Vector3f> points,
int segments,
boolean closed,
Vector3f up)
updateGeometry(Line, List, boolean, Vector3f) with this path.
shape - an instance of Line that describes the 2D shapepoints - a list of supporting points for the spline interpolationsegments - number of resulting path segments per supporting pointclosed - true to close the shape (connect last and first point)up - up vector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||