import pickle


def read(filename):
    """Import pickled :class:`toughio.Mesh`.

    Parameters
    ----------
    filename : str
        Input file name.

    Returns
    -------
    toughio.Mesh
        Output mesh.
    
    """
    with open(filename, "rb") as f:
        mesh = pickle.load(f)

    return mesh