Reading and Writing MESH Files

MESH_IO is a C++ library which can read or write MESH files, which define a finite element mesh.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


MESH_IO is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.

Related Programs:

ICE_TO_MESH, a C++ program which reads a NETCDF file containing an ICE dataset and rewrites the information as a MESH file.

MESH, a data directory which contains examples of MESH files, which can be used to define the geometry of a finite element mesh in 2D or 3D, using triangles, quadrilaterals, tetrahedrons or hexahedrons.

MESH_TO_ICE, a C++ program which reads the ICE dataset information from a MESH files and rewrites it to a NETCDF file.

TRIANGLE_TO_MESH, a C++ program which reads the NODE and ELE files created by TRIANGLE to describe a triangular mesh, and writes a corresponding MESH file for input to MEDIT.


  1. Pascal Frey,
    MEDIT: An interactive mesh visualization software,
    Technical Report RT-0253,
    Institut National de Recherche en Informatique et en Automatique,
    03 December 2001.

Source Code:

Examples and Tests:

List of Routines:

You can go up one level to the C++ source codes.

Last revised on 25 October 2010.