def get_bbox(self, crs: Union[(str, CRS, None)]=None, output_type: Literal[(None, 'polygon', 'bbox')]=None) -> Union[(Polygon, Bbox)]:
    "Get the bounding box of mesh elements.\n\n        Parameters\n        ----------\n        crs : str or CRS or None, default=None\n            CRS to transform the calculated bounding box into before\n            returning\n        output_type : { None, 'polygon', 'bbox'}, default=None\n            Output type\n\n        Returns\n        -------\n        Polygon or Bbox\n            Bounding box of the mesh elements.\n        "
    output_type = ('polygon' if (output_type is None) else output_type)
    (xmin, xmax) = (np.min(self.coord[:, 0]), np.max(self.coord[:, 0]))
    (ymin, ymax) = (np.min(self.coord[:, 1]), np.max(self.coord[:, 1]))
    crs = (self.crs if (crs is None) else crs)
    if (crs is not None):
        if (not self.crs.equals(crs)):
            transformer = Transformer.from_crs(self.crs, crs, always_xy=True)
            ((xmin, xmax), (ymin, ymax)) = transformer.transform((xmin, xmax), (ymin, ymax))
    if (output_type == 'polygon'):
        return box(xmin, ymin, xmax, ymax)
    elif (output_type == 'bbox'):
        return Bbox([[xmin, ymin], [xmax, ymax]])
    raise TypeError("Argument output_type must a string literal 'polygon' or 'bbox'")
Get the bounding box of mesh elements.

Parameters
----------
crs : str or CRS or None, default=None
    CRS to transform the calculated bounding box into before
    returning
output_type : { None, 'polygon', 'bbox'}, default=None
    Output type

Returns
-------
Polygon or Bbox
    Bounding box of the mesh elements.
def get_bbox(self, crs: Union[(str, CRS, None)]=None, output_type: Literal[(None, 'polygon', 'bbox')]=None) -> Union[(Polygon, Bbox)]:
    "Get the bounding box of mesh elements.\n\n        Parameters\n        ----------\n        crs : str or CRS or None, default=None\n            CRS to transform the calculated bounding box into before\n            returning\n        output_type : { None, 'polygon', 'bbox'}, default=None\n            Output type\n\n        Returns\n        -------\n        Polygon or Bbox\n            Bounding box of the mesh elements.\n        "
    output_type = ('polygon' if (output_type is None) else output_type)
    (xmin, xmax) = (np.min(self.coord[:, 0]), np.max(self.coord[:, 0]))
    (ymin, ymax) = (np.min(self.coord[:, 1]), np.max(self.coord[:, 1]))
    crs = (self.crs if (crs is None) else crs)
    if (crs is not None):
        if (not self.crs.equals(crs)):
            transformer = Transformer.from_crs(self.crs, crs, always_xy=True)
            ((xmin, xmax), (ymin, ymax)) = transformer.transform((xmin, xmax), (ymin, ymax))
    if (output_type == 'polygon'):
        return box(xmin, ymin, xmax, ymax)
    elif (output_type == 'bbox'):
        return Bbox([[xmin, ymin], [xmax, ymax]])
    raise TypeError("Argument output_type must a string literal 'polygon' or 'bbox'")