|
|||||||||||
| 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.Cylinder
Cylinder provides an extension of TriMesh. A
Cylinder is defined by a height and radius. The center of the
Cylinder is the origin.
| Field Summary |
| Fields inherited from class com.jme.scene.TriMesh |
indices, triangleQuantity |
| Fields inherited from class com.jme.scene.Geometry |
bound, color, colorBuf, normal, normBuf, texBuf, texture, vertBuf, vertex, vertQuantity |
| Fields inherited from class com.jme.scene.Spatial |
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
| Constructor Summary | |
Cylinder(java.lang.String name,
int axisSamples,
int radialSamples,
float radius,
float height)
Creates a new Cylinder. |
|
| Method Summary | |
float |
getHeight()
|
float |
getRadius()
|
void |
setHeight(float height)
|
void |
setRadius(float radius)
|
| Methods inherited from class com.jme.scene.TriMesh |
clearBuffers, draw, drawBounds, findCollisions, findTriangleCollision, findTrianglePick, findWorldRotMat, getIndexAsBuffer, getIndices, getMeshAsTriangles, getTriangle, getTriangle, getTriangleQuantity, hasCollision, hasTriangleCollision, putClone, reconstruct, setIndexBuffer, setIndices, updateCollisionTree, updateIndexBuffer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Cylinder(java.lang.String name,
int axisSamples,
int radialSamples,
float radius,
float height)
name - The name of this Cylinder.axisSamples - Number of triangle samples along the axis.radialSamples - Number of triangle samples along the radial.radius - The radius of the cylinder.height - The cylinder's height.| Method Detail |
public float getHeight()
public void setHeight(float height)
height - The height to set.public float getRadius()
public void setRadius(float radius)
radius - The radius to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||