/// Returns minimum and maximum coordinates of the axis aligned bounding box of the mesh.
Returns minimum and maximum coordinates of the axis aligned bounding box of the mesh.
Returns minimum and maximum coordinates of the axis aligned bounding box of the mesh .
pub fn extreme_coordinates(&self) -> (Vec3, Vec3)
    {
        let mut min_coordinates = vec3(std::f64::MAX, std::f64::MAX, std::f64::MAX);
        let mut max_coordinates = vec3(std::f64::MIN, std::f64::MIN, std::f64::MIN);
        for vertex_id in self.vertex_iter()
        {
            let position = self.vertex_position(vertex_id);
            for i in 0..3 {
                min_coordinates[i] = min_coordinates[i].min(position[i]);
                max_coordinates[i] = max_coordinates[i].max(position[i]);
            }
        }
        (min_coordinates, max_coordinates)
    }
pub fn extreme_coordinates ( & self ) -> ( Vec3 , Vec3 ) { let mut min_coordinates = vec3 ( std :: f64 :: MAX , std :: f64 :: MAX , std :: f64 :: MAX ) ; let mut max_coordinates = vec3 ( std :: f64 :: MIN , std :: f64 :: MIN , std :: f64 :: MIN ) ; for vertex_id in self . vertex_iter ( ) { let position = self . vertex_position ( vertex_id ) ; for i in 0 .. 3 { min_coordinates [ i ] = min_coordinates [ i ] . min ( position [ i ] ) ; max_coordinates [ i ] = max_coordinates [ i ] . max ( position [ i ] ) ; } } ( min_coordinates , max_coordinates ) }
Returns minimum and maximum coordinates of the axis aligned bounding box of the mesh.
Returns minimum and maximum coordinates of the axis aligned bounding box of the mesh .
&self