|
||||||||||
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.Sphere
public class Sphere
Sphere
represents a 3D object with all points equidistance
from a center point.
Nested Class Summary | |
---|---|
static class |
Sphere.TextureMode
|
Nested classes/interfaces inherited from class com.jme3.scene.Mesh |
---|
Mesh.Mode |
Field Summary | |
---|---|
protected boolean |
interior
|
protected int |
radialSamples
|
float |
radius
the distance from the center point each point falls on |
protected Sphere.TextureMode |
textureMode
|
protected int |
triCount
|
protected boolean |
useEvenSlices
|
protected int |
vertCount
|
protected int |
zSamples
|
Constructor Summary | |
---|---|
Sphere()
Serialization only. |
|
Sphere(int zSamples,
int radialSamples,
float radius)
Constructs a sphere. |
|
Sphere(int zSamples,
int radialSamples,
float radius,
boolean useEvenSlices,
boolean interior)
Constructs a sphere. |
Method Summary | |
---|---|
int |
getRadialSamples()
|
float |
getRadius()
|
Sphere.TextureMode |
getTextureMode()
|
int |
getZSamples()
|
void |
read(JmeImporter e)
|
void |
setTextureMode(Sphere.TextureMode textureMode)
|
void |
updateGeometry(int zSamples,
int radialSamples,
float radius)
Changes the information of the sphere into the given values. |
void |
updateGeometry(int zSamples,
int radialSamples,
float radius,
boolean useEvenSlices,
boolean interior)
|
void |
write(JmeExporter e)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int vertCount
protected int triCount
protected int zSamples
protected int radialSamples
protected boolean useEvenSlices
protected boolean interior
public float radius
protected Sphere.TextureMode textureMode
Constructor Detail |
---|
public Sphere()
public Sphere(int zSamples, int radialSamples, float radius)
zSamples
- The number of samples along the Z.radialSamples
- The number of samples along the radial.radius
- The radius of the sphere.public Sphere(int zSamples, int radialSamples, float radius, boolean useEvenSlices, boolean interior)
zSamples
- The number of samples along the Z.radialSamples
- The number of samples along the radial.radius
- The radius of the sphere.useEvenSlices
- Slice sphere evenly along the Z axisinterior
- Not yet documentedMethod Detail |
---|
public int getRadialSamples()
public float getRadius()
public Sphere.TextureMode getTextureMode()
public int getZSamples()
public void setTextureMode(Sphere.TextureMode textureMode)
textureMode
- The textureMode to set.public void updateGeometry(int zSamples, int radialSamples, float radius)
zSamples
- the number of zSamples of the sphere.radialSamples
- the number of radial samples of the sphere.radius
- the radius of the sphere.public void updateGeometry(int zSamples, int radialSamples, float radius, boolean useEvenSlices, boolean interior)
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 |