com.jme3.scene.shape
クラス PQTorus
java.lang.Object
com.jme3.scene.Mesh
com.jme3.scene.shape.PQTorus
- すべての実装されたインタフェース:
- Savable, java.lang.Cloneable
public class PQTorus
- extends Mesh
A parameterized torus, also known as a pq torus.
コンストラクタの概要 |
PQTorus()
|
PQTorus(float p,
float q,
float radius,
float width,
int steps,
int radialSamples)
Creates a parameterized torus. |
クラス com.jme3.scene.Mesh から継承されたメソッド |
clearBuffer, clone, cloneForAnim, collideWith, createCollisionData, deepClone, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getNumLodLevels, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, prepareForAnim, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPointSize, setStatic, setStreamed, updateBound, updateCounts |
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PQTorus
public PQTorus()
PQTorus
public PQTorus(float p,
float q,
float radius,
float width,
int steps,
int radialSamples)
- Creates a parameterized torus.
Steps and radialSamples are both degree of accuracy values.
- パラメータ:
name
- the name of the torus.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.
getP
public float getP()
getQ
public float getQ()
getRadialSamples
public int getRadialSamples()
getRadius
public float getRadius()
getSteps
public int getSteps()
getWidth
public float getWidth()
read
public void read(JmeImporter e)
throws java.io.IOException
- 定義:
- インタフェース
Savable
内の read
- オーバーライド:
- クラス
Mesh
内の read
- 例外:
java.io.IOException
updateGeometry
public void updateGeometry(float p,
float q,
float radius,
float width,
int steps,
int radialSamples)
- Rebuilds this torus based on a new set of parameters.
- パラメータ:
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.
write
public void write(JmeExporter e)
throws java.io.IOException
- 定義:
- インタフェース
Savable
内の write
- オーバーライド:
- クラス
Mesh
内の write
- 例外:
java.io.IOException