pub trait MeshAabb {
// Required method
fn get_aabb(&self) -> Option<Aabb>;
}Required Methods§
Sourcefn get_aabb(&self) -> Option<Aabb>
fn get_aabb(&self) -> Option<Aabb>
Compute the Axis-Aligned Bounding Box of the mesh vertices in model space,
or return Mesh::final_aabb if it is not None.
Returns None if self doesn’t have Mesh::ATTRIBUTE_POSITION of
type VertexAttributeValues::Float32x3, or if self doesn’t have any vertices.