#[repr(i32)]pub enum PxMeshFlag {
Flipnormals = 1,
E16BitIndices = 2,
}Expand description
Enum with flag values to be used in PxSimpleTriangleMesh::flags.
Variants§
Flipnormals = 1
Specifies if the SDK should flip normals.
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 a counterclockwise winding in a right handed coordinate system or alternatively a clockwise winding order in a left handed coordinate system.
If this does not match the winding order for your triangles, raise the below flag.
E16BitIndices = 2
Denotes the use of 16-bit vertex indices
Trait Implementations§
Source§impl Clone for PxMeshFlag
impl Clone for PxMeshFlag
Source§fn clone(&self) -> PxMeshFlag
fn clone(&self) -> PxMeshFlag
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PxMeshFlag
impl Debug for PxMeshFlag
Source§impl PartialEq for PxMeshFlag
impl PartialEq for PxMeshFlag
impl Copy for PxMeshFlag
impl Eq for PxMeshFlag
impl StructuralPartialEq for PxMeshFlag
Auto Trait Implementations§
impl Freeze for PxMeshFlag
impl RefUnwindSafe for PxMeshFlag
impl Send for PxMeshFlag
impl Sync for PxMeshFlag
impl Unpin for PxMeshFlag
impl UnwindSafe for PxMeshFlag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more