#[repr(i32)]
pub enum PxMeshPreprocessingFlag {
WeldVertices,
DisableCleanMesh,
DisableActiveEdgesPrecompute,
Force32bitIndices,
EnableVertMapping,
EnableInertia,
}
Expand description
Enum for the set of mesh pre-processing parameters.
Variants§
WeldVertices
When set, mesh welding is performed. See PxCookingParams::meshWeldTolerance. Clean mesh must be enabled.
DisableCleanMesh
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.
DisableActiveEdgesPrecompute
When set, active edges are set for each triangle edge. This makes cooking faster but slow up contact generation.
Force32bitIndices
When set, 32-bit indices will always be created regardless of triangle count.
By default mesh will be created with 16-bit indices for triangle count < = 0xFFFF and 32-bit otherwise.
EnableVertMapping
When set, a list of triangles will be created for each associated vertex in the mesh
EnableInertia
When set, inertia tensor is calculated for the mesh
Trait Implementations§
source§impl Clone for PxMeshPreprocessingFlag
impl Clone for PxMeshPreprocessingFlag
source§fn clone(&self) -> PxMeshPreprocessingFlag
fn clone(&self) -> PxMeshPreprocessingFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PxMeshPreprocessingFlag
impl Debug for PxMeshPreprocessingFlag
source§impl PartialEq<PxMeshPreprocessingFlag> for PxMeshPreprocessingFlag
impl PartialEq<PxMeshPreprocessingFlag> for PxMeshPreprocessingFlag
source§fn eq(&self, other: &PxMeshPreprocessingFlag) -> bool
fn eq(&self, other: &PxMeshPreprocessingFlag) -> bool
self
and other
values to be equal, and is used
by ==
.