Package jme3utilities

Enum Class MeshNormals

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

public enum MeshNormals extends Enum<MeshNormals>
Enumerate algorithms for auto-generating mesh normals from position data.
  • Enum Constant Details

    • Facet

      public static final MeshNormals Facet
      face normals (similar to Blender's "flat" shading)
    • None

      public static final MeshNormals None
      no normals (delete if present, best for unshaded materials)
    • Smooth

      public static final MeshNormals Smooth
      smoothed normals (for shaded materials)
    • Sphere

      public static final MeshNormals Sphere
      sphere normals (normal direction is determined by vertex position)
  • Method Details

    • values

      public static MeshNormals[] 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 MeshNormals 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