pub struct ShapeMesh<'a> { /* private fields */ }Expand description
Borrowed view of mesh data owned by another Box3D shape resource.
This type does not own native storage. It is tied to the World or
Compound borrow that produced it and becomes invalid if the owning shape,
compound, or resource-backed geometry is destroyed or replaced.
Implementations§
Source§impl<'a> ShapeMesh<'a>
impl<'a> ShapeMesh<'a>
Sourcepub const fn byte_count(&self) -> i32
pub const fn byte_count(&self) -> i32
Returns the native byte count of the mesh data.
Sourcepub const fn surface_area(&self) -> f32
pub const fn surface_area(&self) -> f32
Returns the mesh surface area.
Sourcepub const fn tree_height(&self) -> i32
pub const fn tree_height(&self) -> i32
Returns the height of the mesh acceleration tree.
Sourcepub const fn degenerate_count(&self) -> i32
pub const fn degenerate_count(&self) -> i32
Returns the number of degenerate triangles found during cooking.
Sourcepub const fn vertex_count(&self) -> i32
pub const fn vertex_count(&self) -> i32
Returns the number of mesh vertices.
Sourcepub const fn triangle_count(&self) -> i32
pub const fn triangle_count(&self) -> i32
Returns the number of mesh triangles.
Sourcepub const fn material_count(&self) -> i32
pub const fn material_count(&self) -> i32
Returns the number of material slots referenced by the mesh.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ShapeMesh<'a>
impl<'a> RefUnwindSafe for ShapeMesh<'a>
impl<'a> Send for ShapeMesh<'a>
impl<'a> Sync for ShapeMesh<'a>
impl<'a> Unpin for ShapeMesh<'a>
impl<'a> UnsafeUnpin for ShapeMesh<'a>
impl<'a> UnwindSafe for ShapeMesh<'a>
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