#[repr(C)]pub struct b3CompoundMesh {
pub meshData: *const b3MeshData,
pub transform: b3Transform,
pub scale: b3Vec3,
pub materialIndices: [c_int; 4],
}Expand description
A mesh with non-uniform scale that lives in a compound.
Fields§
§meshData: *const b3MeshDataPointer to the unique shared mesh.
transform: b3TransformThe transform of this mesh instance.
scale: b3Vec3Non-uniform scale of this mesh instance.
materialIndices: [c_int; 4]This is used to access the surface material from b3GetCompoundMaterials. Requires an extra level of indirection. The triangle material index is clamped to B3_MAX_COMPOUND_MESH_MATERIALS. materialIndex = materialIndices[triangle->materialIndex]
Trait Implementations§
Source§impl Clone for b3CompoundMesh
impl Clone for b3CompoundMesh
Source§fn clone(&self) -> b3CompoundMesh
fn clone(&self) -> b3CompoundMesh
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for b3CompoundMesh
Auto Trait Implementations§
impl !Send for b3CompoundMesh
impl !Sync for b3CompoundMesh
impl Freeze for b3CompoundMesh
impl RefUnwindSafe for b3CompoundMesh
impl Unpin for b3CompoundMesh
impl UnsafeUnpin for b3CompoundMesh
impl UnwindSafe for b3CompoundMesh
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