Skip to main content

MeshAabb

Trait MeshAabb 

Source
pub trait MeshAabb {
    // Required method
    fn compute_aabb(&self) -> Option<Aabb>;
}

Required Methods§

Source

fn compute_aabb(&self) -> Option<Aabb>

Compute the Axis-Aligned Bounding Box of the mesh vertices in model space

Returns None if self doesn’t have Mesh::ATTRIBUTE_POSITION of type VertexAttributeValues::Float32x3, or if self doesn’t have any vertices.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl MeshAabb for Mesh

Implementors§