def load(cls: Type[MeshType], filename: str) -> MeshType: """Import a mesh from a file using `meshio <https://github.com/nschloe/meshio>`_. Parameters ---------- filename The filename of the mesh. """ from skfem.io.meshio import from_file return from_file(filename)
def load(cls, filename: str, out: Optional[List[str]] = None, **kwargs): """Load a mesh using meshio. Parameters ---------- filename The filename of the mesh file. out Optional list of ``meshio.Mesh`` attribute names, overwrite with the corresponding data. E.g., ``['point_data', 'cell_data']``. """ from skfem.io.meshio import from_file return from_file(filename, out, **kwargs)