Enum Class PxMeshFlagEnum

java.lang.Object
java.lang.Enum<PxMeshFlagEnum>
physx.geometry.PxMeshFlagEnum
All Implemented Interfaces:
Serializable, Comparable<PxMeshFlagEnum>, Constable

public enum PxMeshFlagEnum extends Enum<PxMeshFlagEnum>
Enum with flag values to be used in PxSimpleTriangleMesh::flags.
  • Enum Constant Details

    • eFLIPNORMALS

      public static final PxMeshFlagEnum eFLIPNORMALS
      Specifies if the SDK should flip normals.

      The PhysX libraries assume that the face normal of a triangle with vertices [a,b,c] can be computed as: edge1 = b-a edge2 = c-a face_normal = edge1 x edge2.

      Note: This is the same as a counterclockwise winding in a right handed coordinate system or alternatively a clockwise winding order in a left handed coordinate system.

      If this does not match the winding order for your triangles, raise the below flag.

    • e16_BIT_INDICES

      public static final PxMeshFlagEnum e16_BIT_INDICES
  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static PxMeshFlagEnum[] 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 PxMeshFlagEnum 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
    • forValue

      public static PxMeshFlagEnum forValue(int value)