Enum physx_sys::PxMeshFlag
source · #[repr(i32)]pub enum PxMeshFlag {
Flipnormals,
E16BitIndices,
}
Expand description
Enum with flag values to be used in PxSimpleTriangleMesh::flags.
Variants§
Flipnormals
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
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 copy 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<PxMeshFlag> for PxMeshFlag
impl PartialEq<PxMeshFlag> for PxMeshFlag
source§fn eq(&self, other: &PxMeshFlag) -> bool
fn eq(&self, other: &PxMeshFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PxMeshFlag
impl Eq for PxMeshFlag
impl StructuralEq for PxMeshFlag
impl StructuralPartialEq for PxMeshFlag
Auto Trait Implementations§
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