Class Cone

java.lang.Object
com.jme3.scene.Mesh
jme3utilities.mesh.Cone
All Implemented Interfaces:
com.jme3.export.Savable, com.jme3.util.clone.JmeCloneable, Cloneable

public class Cone extends com.jme3.scene.Mesh
A 3-D, static, Triangles-mode Mesh (with normals but no indices or texture coordinates) that renders a pyramid or cone.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.jme3.scene.Mesh

    com.jme3.scene.Mesh.Mode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Logger
    message logger for this class
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    No-argument constructor needed by SavableClassUtil.
     
    Cone(int numSides, float radius, float yHeight, boolean generatePyramid)
    Instantiate a right circular cone or a regular pyramid.
  • 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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      public static final Logger logger
      message logger for this class
  • Constructor Details

    • Cone

      protected Cone()
      No-argument constructor needed by SavableClassUtil.
    • Cone

      public Cone(int numSides, float radius, float yHeight, boolean generatePyramid)
      Instantiate a right circular cone or a regular pyramid. The apex is at (0,2*height/2). The center of the base is at (0,-height/2,0). The base lies parallel to the X-Z plane. All triangles face outward.
      Parameters:
      numSides - the desired number of sides for the base polygon (≥3)
      radius - the desired radius of the base (in mesh units, >0)
      yHeight - the desired total height of the cone/pyramid on the Y axis (in mesh units, >0)
      generatePyramid - true for a pyramid (with flat triangles), false for a cone (with curved triangles)