pub fn bbox_submesh(&self, submesh_i: usize) -> OptionalBoundingBox3d<f32> {
        self.indices_per_material.get(submesh_i).map_or_else(
            OptionalBoundingBox3d::new,
            |submesh| {
                submesh
                    .iter()
                    .map(|&pos_i| self.positions[pos_i as usize])
                    .map(Point3::from)
                    .collect()
            },
        )
    }
/// Returns bounding box of the submesh at the given index.
Returns bounding box of the submesh at the given index.
Returns bounding box of the submesh at the given index .
pub fn bbox_submesh(&self, submesh_i: usize) -> OptionalBoundingBox3d<f32> {
        self.indices_per_material.get(submesh_i).map_or_else(
            OptionalBoundingBox3d::new,
            |submesh| {
                submesh
                    .iter()
                    .map(|&pos_i| self.positions[pos_i as usize])
                    .map(Point3::from)
                    .collect()
            },
        )
    }
pub fn bbox_submesh ( & self , submesh_i : usize ) -> OptionalBoundingBox3d < f32 > { self . indices_per_material . get ( submesh_i ) . map_or_else ( OptionalBoundingBox3d :: new , | submesh | { submesh . iter ( ) . map ( | & pos_i | self . positions [ pos_i as usize ] ) . map ( Point3 :: from ) . collect ( ) } , ) }
Returns bounding box of the submesh at the given index.
Returns bounding box of the submesh at the given index .
&self
submesh_i
usize
&self
submesh_i
usize