fedoo.mesh.import_msh

import_msh(filename: str, name: str = '', mesh_type: list[str] = ['curve', 'surface', 'volume']) → Mesh

Import a mesh from a msh file (gmsh format).

Legacy ASCII Gmsh reader. Prefer fedoo.Mesh.read() or fedoo.Mesh.from_meshio() for new workflows.

Parameters:
  • filename (str) – Name of the ASCII Gmsh .msh file to import.

  • name (str, optional) – Name of the imported Mesh. The default is “”.

  • mesh_type (list of str in {'curve', 'surface', 'volume'}) – Type of geometries to import. Default = [‘curve’, ‘surface’, ‘volume’], ie import all meshes.

Return type:

Mesh object