PxMeshPreprocessingFlag

Defined in include/cooking/PxCooking.h

struct PxMeshPreprocessingFlag

Enum for the set of mesh pre-processing parameters.

Public Types

enum Enum

Values:

enumerator eWELD_VERTICES

When set, mesh welding is performed.

See PxCookingParams::meshWeldTolerance. Mesh cleaning must be enabled.

enumerator eDISABLE_CLEAN_MESH

When set, mesh cleaning is disabled.

This makes cooking faster.

When mesh cleaning is disabled, mesh welding is also disabled.

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

enumerator eDISABLE_ACTIVE_EDGES_PRECOMPUTE

When set, active edges are not computed and just enabled for all edges.

This makes cooking faster but contact generation slower.

enumerator 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.

enumerator eENABLE_VERT_MAPPING

When set, a list of triangles will be created for each associated vertex in the mesh.

enumerator eENABLE_INERTIA

When set, inertia tensor is calculated for the mesh.