**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 GNU LGPL 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.

- fem_to_gmsh_test.m, calls all the tests.
- fem_to_gmsh_test.sh, runs all the tests.
- fem_to_gmsh_test.txt, the output file.

**CHEBY9** is a 1D interval, [-1,+1], containing 9 nodes and 8 elements.

- cheby9_nodes.txt, the node coordinates.
- cheby9_elements.txt, the elements.
- cheby9.msh, the corresponding GMSH mesh file.

**MESH3D** is a 3D tetrahedral mesh using 8 nodes and 6 elements.

- mesh3d_nodes.txt, the nodes for the 4-node tet mesh.
- mesh3d_elements.txt, the elements for the 4-node tet mesh.
- mesh3d.msh, the Gmsh msh file version of the data.

**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.

- rectangle_nodes.txt, the node coordinates.
- rectangle_elements.txt, the elements.
- rectangle.png, a PNG image of the triangulation, created by TRIANGULATION_PLOT.
- rectangle.msh, the corresponding Gmsh msh file.