Flags which describe the format and behavior of a convex mesh. More...
#include <PxConvexMeshDesc.h>
Public Types | |
enum | Enum { eFLIPNORMALS = (1<<0), e16_BIT_INDICES = (1<<1), eCOMPUTE_CONVEX = (1<<2), eINFLATE_CONVEX = (1<<3), eCHECK_ZERO_AREA_TRIANGLES = (1<<4) } |
Flags which describe the format and behavior of a convex mesh.
enum PxConvexFlag::Enum |
Enumerator | |
---|---|
eFLIPNORMALS |
Used to flip the normals if the winding order is reversed. 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 counterclockwise winding in a right handed graphics coordinate system. If that does not match the winding order for your triangles, raise this flag. Deprecated as triangles will not be accepted in future releases as input for convex mesh descriptor. |
e16_BIT_INDICES |
Denotes the use of 16-bit vertex indices in PxConvexMeshDesc::triangles or PxConvexMeshDesc::polygons. (otherwise, 32-bit indices are assumed)
|
eCOMPUTE_CONVEX |
Automatically recomputes the hull from the vertices. If this flag is not set, you must provide the entire geometry manually. |
eINFLATE_CONVEX |
Inflates the convex object according to skin width. If the convex hull computation fails, use this flag to increase robustness.
|
eCHECK_ZERO_AREA_TRIANGLES |
Checks and removes almost zero-area triangles during convex hull computation. The rejected area size is specified in PxCookingParams::areaTestEpsilon.
|