///
/// Computes the axis aligned bounding box of the mesh.
///
Computes the axis aligned bounding box of the mesh.
Computes the axis aligned bounding box of the mesh .
pub fn compute_aabb(&self) -> AxisAlignedBoundingBox {
        match self.positions {
            Positions::F32(ref positions) => AxisAlignedBoundingBox::new_with_positions(positions),
            Positions::F64(ref positions) => AxisAlignedBoundingBox::new_with_positions(
                &positions
                    .iter()
                    .map(|v| Vec3::new(v.x as f32, v.y as f32, v.z as f32))
                    .collect::<Vec<_>>(),
            ),
        }
    }
pub fn compute_aabb ( & self ) -> AxisAlignedBoundingBox { match self . positions { Positions :: F32 ( ref positions ) => AxisAlignedBoundingBox :: new_with_positions ( positions ) , Positions :: F64 ( ref positions ) => AxisAlignedBoundingBox :: new_with_positions ( & positions . iter ( ) . map ( | v | Vec3 :: new ( v . x as f32 , v . y as f32 , v . z as f32 ) ) . collect :: < Vec < _ > > ( ) , ) , } }
Computes the axis aligned bounding box of the mesh.
Computes the axis aligned bounding box of the mesh .
&self