fem_to_gmsh_test, a MATLAB code which calls fem_to_gmsh(), which converts FEM files representing a 1D, 2D, or 3D mesh into a GMSH mesh file.
The computer code and data files made available on this web page are distributed under the MIT license
fem_to_gmsh, a MATLAB code which reads FEM files definining a 1D, 2D or 3D mesh, namely a file of node coordinates and a file of elements defined by node indices, and creates a gmsh mesh file.
CHEBY9 is a 1D interval, [-1,+1], containing 9 nodes and 8 elements.
MESH3D is a 3D tetrahedral mesh using 8 nodes and 6 elements.
RECTANGLE is a 2D rectangular region which has been divided into 3 rows and 4 columns of squares, each then split into two 3-node triangles. The node and element files of this triangulation are converted into a Gmsh msh file describing the same triangulation.