pub trait MeshAabb {
// Required method
fn compute_aabb(&self) -> Option<Aabb>;
}Required Methods§
Sourcefn compute_aabb(&self) -> Option<Aabb>
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.