Enum Class PxTriangleMeshAnalysisResultEnum

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

public enum PxTriangleMeshAnalysisResultEnum extends Enum<PxTriangleMeshAnalysisResultEnum>
These flags indicate what kind of deficiencies a triangle mesh has and describe if the mesh is considered ok, problematic or invalid for tetmeshing
  • Enum Constant Details

    • eVALID

      public static final PxTriangleMeshAnalysisResultEnum eVALID
    • eZERO_VOLUME

      public static final PxTriangleMeshAnalysisResultEnum eZERO_VOLUME
      invalid: Flat mesh without meaningful amount of volume - cannot be meshed since a tetmesh is volumetric
    • eOPEN_BOUNDARIES

      public static final PxTriangleMeshAnalysisResultEnum eOPEN_BOUNDARIES
      problematic: Open boundary means that the mesh is not watertight and that there are holes. The mesher can fill holes but the surface might have an unexpected shape where the hole was.
    • eSELF_INTERSECTIONS

      public static final PxTriangleMeshAnalysisResultEnum eSELF_INTERSECTIONS
      problematic: The surface of the resulting mesh won't match exactly at locations of self-intersections. The tetmesh might be connected at self-intersections even if the input triangle mesh is not
    • eINCONSISTENT_TRIANGLE_ORIENTATION

      public static final PxTriangleMeshAnalysisResultEnum eINCONSISTENT_TRIANGLE_ORIENTATION
      invalid: It is not possible to distinguish what is inside and outside of the mesh. If there are no self-intersections and not edges shared by more than two triangles, a call to makeTriOrientationConsistent can fix this. Without fixing it, the output from the tetmesher will be incorrect
    • eCONTAINS_ACUTE_ANGLED_TRIANGLES

      public static final PxTriangleMeshAnalysisResultEnum eCONTAINS_ACUTE_ANGLED_TRIANGLES
      problematic: An ideal mesh for a softbody has triangles with similar angles and evenly distributed vertices. Acute angles can be handled but might lead to a poor quality tetmesh.
    • eEDGE_SHARED_BY_MORE_THAN_TWO_TRIANGLES

      public static final PxTriangleMeshAnalysisResultEnum eEDGE_SHARED_BY_MORE_THAN_TWO_TRIANGLES
      problematic: Border case of a self-intersecting mesh. The tetmesh might not match the surace exactly near such edges.
    • eCONTAINS_DUPLICATE_POINTS

      public static final PxTriangleMeshAnalysisResultEnum eCONTAINS_DUPLICATE_POINTS
      ok: Duplicate points can be handled by the mesher without problems. The resulting tetmesh will only make use of first unique point that is found, duplicate points will get mapped to that unique point in the tetmesh. Therefore the tetmesh can contain points that are not accessed by a tet.
    • eCONTAINS_INVALID_POINTS

      public static final PxTriangleMeshAnalysisResultEnum eCONTAINS_INVALID_POINTS
      invalid: Points contain NAN, infinity or similar values that will lead to an invalid mesh
    • eREQUIRES_32BIT_INDEX_BUFFER

      public static final PxTriangleMeshAnalysisResultEnum eREQUIRES_32BIT_INDEX_BUFFER
      invalid: Mesh contains more indices than a 16bit index buffer can address
    • eTRIANGLE_INDEX_OUT_OF_RANGE

      public static final PxTriangleMeshAnalysisResultEnum eTRIANGLE_INDEX_OUT_OF_RANGE
      invalid: A mesh triangle index is negative or lager than the size of the vertex buffer
    • eMESH_IS_PROBLEMATIC

      public static final PxTriangleMeshAnalysisResultEnum eMESH_IS_PROBLEMATIC
      flag is set if the mesh is categorized as problematic
    • eMESH_IS_INVALID

      public static final PxTriangleMeshAnalysisResultEnum eMESH_IS_INVALID
  • Field Details

    • value

      public final int value
  • Method Details

    • values

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