|
||||||||||
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.Cylinder
public class Cylinder
A simple cylinder, defined by it's height and radius. (Ported to jME3)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme3.scene.Mesh |
---|
Mesh.Mode |
Constructor Summary | |
---|---|
Cylinder()
Default constructor for serialization only. |
|
Cylinder(int axisSamples,
int radialSamples,
float radius,
float height)
Creates a new Cylinder. |
|
Cylinder(int axisSamples,
int radialSamples,
float radius,
float height,
boolean closed)
Creates a new Cylinder. |
|
Cylinder(int axisSamples,
int radialSamples,
float radius,
float height,
boolean closed,
boolean inverted)
Creates a new Cylinder. |
|
Cylinder(int axisSamples,
int radialSamples,
float radius,
float radius2,
float height,
boolean closed,
boolean inverted)
|
Method Summary | |
---|---|
int |
getAxisSamples()
|
float |
getHeight()
|
int |
getRadialSamples()
|
float |
getRadius()
|
float |
getRadius2()
|
boolean |
isClosed()
|
boolean |
isInverted()
|
void |
read(JmeImporter e)
|
void |
updateGeometry(int axisSamples,
int radialSamples,
float radius,
float radius2,
float height,
boolean closed,
boolean inverted)
Rebuilds the cylinder based on a new set of parameters. |
void |
write(JmeExporter e)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cylinder()
public Cylinder(int axisSamples, int radialSamples, float radius, float height)
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.public Cylinder(int axisSamples, int radialSamples, float radius, float height, boolean closed)
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.closed
- true to create a cylinder with top and bottom surfacepublic Cylinder(int axisSamples, int radialSamples, float radius, float height, boolean closed, boolean inverted)
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.closed
- true to create a cylinder with top and bottom surfaceinverted
- true to create a cylinder that is meant to be viewed from the
interior.public Cylinder(int axisSamples, int radialSamples, float radius, float radius2, float height, boolean closed, boolean inverted)
Method Detail |
---|
public int getAxisSamples()
public float getHeight()
public int getRadialSamples()
public float getRadius()
public float getRadius2()
public boolean isClosed()
public boolean isInverted()
public void updateGeometry(int axisSamples, int radialSamples, float radius, float radius2, float height, boolean closed, boolean inverted)
axisSamples
- the number of samples along the axis.radialSamples
- the number of samples around the radial.radius
- the radius of the bottom of the cylinder.radius2
- the radius of the top of the cylinder.height
- the cylinder's height.closed
- should the cylinder have top and bottom surfaces.inverted
- is the cylinder is meant to be viewed from the inside.public void read(JmeImporter e) throws java.io.IOException
read
in interface Savable
read
in class Mesh
java.io.IOException
public void write(JmeExporter e) throws java.io.IOException
write
in interface Savable
write
in class Mesh
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |