Class LoopMesh

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

public class LoopMesh extends com.jme3.scene.Mesh
A static, LineLoop-mode mesh (without indices) that renders a circle or polygon.
  • Nested Class Summary

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

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

    Constructors
    Modifier
    Constructor
    Description
    protected
    No-argument constructor needed by SavableClassUtil.
     
    LoopMesh(int vertexCount)
    Instantiate a regular polygon (or circle) with radius=1, in the X-Z plane.
     
    LoopMesh(int vertexCount, float radius)
    Instantiate a regular polygon (or circle) in the X-Z plane.
     
    LoopMesh(com.jme3.math.Vector3f[] cornerArray)
    Instantiate a 3-D polygon from an array of coordinates.
  • 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
  • Constructor Details

    • LoopMesh

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

      public LoopMesh(int vertexCount)
      Instantiate a regular polygon (or circle) with radius=1, in the X-Z plane.

      The center is at (0,0,0).

      Parameters:
      vertexCount - the desired number of vertices (≥3)
    • LoopMesh

      public LoopMesh(int vertexCount, float radius)
      Instantiate a regular polygon (or circle) in the X-Z plane.

      The center is at (0,0,0).

      Parameters:
      vertexCount - the desired number of vertices (≥3)
      radius - the desired radius (in mesh units, ≥0)
    • LoopMesh

      public LoopMesh(com.jme3.math.Vector3f[] cornerArray)
      Instantiate a 3-D polygon from an array of coordinates.
      Parameters:
      cornerArray - the desired mesh coordinates of the corners, in sequence (not null or containing any nulls, length≥3, unaffected)