Enum Class SphereMeshes

java.lang.Object
java.lang.Enum<SphereMeshes>
jme3utilities.debug.SphereMeshes
All Implemented Interfaces:
Serializable, Comparable<SphereMeshes>, Constable

public enum SphereMeshes extends Enum<SphereMeshes>
Enumerate mesh options for visualizing spheres.
  • Enum Constant Details

    • Icosphere

      public static final SphereMeshes Icosphere
      Icosphere with numRefineSteps=1 (42 vertices)
    • LoopMesh

      public static final SphereMeshes LoopMesh
      LoopMesh with 32 vertices (wants Y-axis billboarding)
    • Octasphere

      public static final SphereMeshes Octasphere
      Octasphere with numRefineSteps=2 (66 vertices)
    • PoleSphere

      public static final SphereMeshes PoleSphere
      com.jme3.scene.shape.Sphere with 172 vertices
    • WireSphere

      public static final SphereMeshes WireSphere
      com.jme3.scene.debug.WireSphere (360 vertices)
  • Method Details

    • values

      public static SphereMeshes[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SphereMeshes valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isInstance

      public boolean isInstance(com.jme3.scene.Mesh mesh)
      Test whether the specified Mesh has the corresponding type.
      Parameters:
      mesh - (unaffected)
      Returns:
      true if the correct type, otherwise false
    • makeSphere

      public com.jme3.scene.Mesh makeSphere(float radius, boolean wantNormals, boolean wantUVs)
      Instantiate a new Mesh.
      Parameters:
      radius - the desired radius (in mesh units, >0)
      wantNormals - true to include normals, false to exclude them
      wantUVs - true to include texture coordinates, false to exclude them
      Returns:
      a new Mesh of the corresponding type