This is an addon script for Blender to allow importing gmsh's native file format (".msh").
2D regions ($PhysicalNames
) will get mapped to Blender materials, i.e. there are materials for all regions and all faces in such a region will use the corresponding material.
Just go to File -> User Preferences -> Addons, click Install from file... and find the import_msh.py
. You should then find the gmsh MSH import in the File -> Import menu (else check if the addon is enabled)
- this only supports simple primitives (lines, triangles and quads), since I didn't need support for things like "125-node fourth order hexahedron" (yes, that's a thing in .msh)
- (tetrahedron support is included but commented out, you may try it at your own risk)
- no support for periodic elements (
$Periodic
) and additional element data ($ElementData
,$ElementNodeData
) - no export