Package physx.cooking

Enum Class PxMeshPreprocessingFlagEnum

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

public enum PxMeshPreprocessingFlagEnum extends Enum<PxMeshPreprocessingFlagEnum>
Enum for the set of mesh pre-processing parameters.
  • Enum Constant Details

    • eWELD_VERTICES

      public static final PxMeshPreprocessingFlagEnum eWELD_VERTICES
      When set, mesh welding is performed. See PxCookingParams::meshWeldTolerance. Clean mesh must be enabled.
    • eDISABLE_CLEAN_MESH

      public static final PxMeshPreprocessingFlagEnum eDISABLE_CLEAN_MESH
      When set, mesh cleaning is disabled. This makes cooking faster.

      When clean mesh is not performed, mesh welding is also not performed.

      It is recommended to use only meshes that passed during validateTriangleMesh.

    • eDISABLE_ACTIVE_EDGES_PRECOMPUTE

      public static final PxMeshPreprocessingFlagEnum eDISABLE_ACTIVE_EDGES_PRECOMPUTE
      When set, active edges are set for each triangle edge. This makes cooking faster but slow up contact generation.
    • eFORCE_32BIT_INDICES

      public static final PxMeshPreprocessingFlagEnum eFORCE_32BIT_INDICES
      When set, 32-bit indices will always be created regardless of triangle count.

      Note: By default mesh will be created with 16-bit indices for triangle count <= 0xFFFF and 32-bit otherwise.

  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static PxMeshPreprocessingFlagEnum[] 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 PxMeshPreprocessingFlagEnum 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 PxMeshPreprocessingFlagEnum forValue(int value)