Package jme3utilities.mesh
Class Dodecahedron
java.lang.Object
com.jme3.scene.Mesh
jme3utilities.mesh.Dodecahedron
- All Implemented Interfaces:
com.jme3.export.Savable,com.jme3.util.clone.JmeCloneable,Cloneable
public class Dodecahedron
extends com.jme3.scene.Mesh
A 3-D, static mesh (with indices but without normals or texture coordinates)
that renders a regular dodecahedron. (A regular dodecahedron has 12
pentagonal faces.)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.scene.Mesh
com.jme3.scene.Mesh.Mode -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNo-argument constructor needed by SavableClassUtil.Dodecahedron(float radius, com.jme3.scene.Mesh.Mode mode) Instantiate a regular dodecahedron with the specified radius. -
Method Summary
Methods inherited from class com.jme3.scene.Mesh
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, read, 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, write
-
Field Details
-
logger
message logger for this class
-
-
Constructor Details
-
Dodecahedron
protected Dodecahedron()No-argument constructor needed by SavableClassUtil. -
Dodecahedron
public Dodecahedron(float radius, com.jme3.scene.Mesh.Mode mode) Instantiate a regular dodecahedron with the specified radius. The center is at (0,0,0). The first and last faces lie parallel to the X-Y plane. If mode=Triangles, all triangles face outward.- Parameters:
radius- the desired distance of the vertices from the center (in mesh units, >0)mode- the desired mode of the Mesh (Lines or Points or Triangles)
-