public class Torus extends Mesh
The center is by default the origin.
Constructor and Description |
---|
Torus() |
Torus(int circleSamples,
int radialSamples,
float innerRadius,
float outerRadius)
Constructs a new Torus.
|
Modifier and Type | Method and Description |
---|---|
int |
getCircleSamples() |
float |
getInnerRadius() |
float |
getOuterRadius() |
int |
getRadialSamples() |
void |
read(JmeImporter e) |
void |
updateGeometry(int circleSamples,
int radialSamples,
float innerRadius,
float outerRadius)
Rebuilds this torus based on a new set of parameters.
|
void |
write(JmeExporter e) |
addMorphTarget, clearBuffer, clearCollisionData, clone, cloneFields, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getInstanceCount, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getMorphIndex, getMorphTarget, getMorphTargetNames, getMorphTargets, getNumLodLevels, getPatchVertexCount, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, hasMorphTargets, isAnimated, isAnimatedByBone, isAnimatedByJoint, jmeClone, prepareForAnim, removeMorphTarget, removeMorphTarget, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPatchVertexCount, setStatic, setStreamed, updateBound, updateCounts
public Torus()
public Torus(int circleSamples, int radialSamples, float innerRadius, float outerRadius)
circleSamples
- The number of samples along the circles.radialSamples
- The number of samples along the radial.innerRadius
- minor radius of the torusouterRadius
- major radius of the toruspublic int getCircleSamples()
public float getInnerRadius()
public float getOuterRadius()
public int getRadialSamples()
public void read(JmeImporter e) throws java.io.IOException
public void updateGeometry(int circleSamples, int radialSamples, float innerRadius, float outerRadius)
circleSamples
- the number of samples along the circles.radialSamples
- the number of samples along the radial.innerRadius
- minor radius of the torusouterRadius
- major radius of the toruspublic void write(JmeExporter e) throws java.io.IOException