public class PQTorus extends Mesh
Constructor and Description |
---|
PQTorus() |
PQTorus(float p,
float q,
float radius,
float width,
int steps,
int radialSamples)
Creates a parameterized torus.
|
Modifier and Type | Method and Description |
---|---|
float |
getP() |
float |
getQ() |
int |
getRadialSamples() |
float |
getRadius() |
int |
getSteps() |
float |
getWidth() |
void |
read(JmeImporter importer) |
void |
updateGeometry(float p,
float q,
float radius,
float width,
int steps,
int radialSamples)
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 PQTorus()
public PQTorus(float p, float q, float radius, float width, int steps, int radialSamples)
Steps and radialSamples are both degree of accuracy values.
p
- the x/z oscillation.q
- the y oscillation.radius
- the radius of the PQTorus.width
- the width of the torus.steps
- the steps along the torus.radialSamples
- radial samples for the torus.public float getP()
public float getQ()
public int getRadialSamples()
public float getRadius()
public int getSteps()
public float getWidth()
public void updateGeometry(float p, float q, float radius, float width, int steps, int radialSamples)
p
- the x/z oscillation.q
- the y oscillation.radius
- the radius of the PQTorus.width
- the width of the torus.steps
- the steps along the torus.radialSamples
- radial samples for the torus.public void read(JmeImporter importer) throws java.io.IOException
public void write(JmeExporter e) throws java.io.IOException