- All Implemented Interfaces:
Serializable,Comparable<PxTriangleMeshAnalysisResultEnum>,Constable
These flags indicate what kind of deficiencies a triangle mesh has and describe if the mesh is considered ok, problematic or invalid for tetmeshing
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionproblematic: An ideal mesh for a softbody has triangles with similar angles and evenly distributed vertices.ok: Duplicate points can be handled by the mesher without problems.invalid: Points contain NAN, infinity or similar values that will lead to an invalid meshproblematic: Border case of a self-intersecting mesh.invalid: It is not possible to distinguish what is inside and outside of the mesh.flag is set if the mesh is categorized as problematicproblematic: Open boundary means that the mesh is not watertight and that there are holes.invalid: Mesh contains more indices than a 16bit index buffer can addressproblematic: The surface of the resulting mesh won't match exactly at locations of self-intersections.invalid: A mesh triangle index is negative or lager than the size of the vertex bufferinvalid: Flat mesh without meaningful amount of volume - cannot be meshed since a tetmesh is volumetric -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionforValue(int value) Returns the enum constant of this class with the specified name.static PxTriangleMeshAnalysisResultEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
eVALID
-
eZERO_VOLUME
invalid: Flat mesh without meaningful amount of volume - cannot be meshed since a tetmesh is volumetric -
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
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
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
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
problematic: Border case of a self-intersecting mesh. The tetmesh might not match the surace exactly near such edges. -
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
invalid: Points contain NAN, infinity or similar values that will lead to an invalid mesh -
eREQUIRES_32BIT_INDEX_BUFFER
invalid: Mesh contains more indices than a 16bit index buffer can address -
eTRIANGLE_INDEX_OUT_OF_RANGE
invalid: A mesh triangle index is negative or lager than the size of the vertex buffer -
eMESH_IS_PROBLEMATIC
flag is set if the mesh is categorized as problematic -
eMESH_IS_INVALID
-
-
Field Details
-
value
public final int value
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
forValue
-