Write MESH2D Information to Files

MESH2D_WRITE is a MATLAB program which demonstrates how to call MESH2D to create a mesh, and then to write the node and element information to files for use by other programs.

The code assumes that the MESH2D software is in the MATLAB path.


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


MESH2D_WRITE is available in a MATLAB version.

Related Data and Programs:

DISTMESH, a MATLAB library which carries out triangular or tetrahedral mesh generation, by Per-Olof Persson and Gilbert Strang.

MESH2D, a MATLAB library which can automatically create a triangular mesh for a given polygonal region, by Darren Engwirda.

MESH2D_HAND, a MATLAB program which reads in a set of 59 points which outline a human hand, and calls MESH2D, which is able to create a fine triangular mesh of the region outlined by the points.

TEST_TRIANGULATION, a MATLAB library which defines some test regions for triangulation.

TRIANGLE, a C program which computes a triangulation of a geometric region, by Jonathan Shewchuk.

TRIANGULATION, a MATLAB library which performs various operations on order 3 ("linear") or order 6 ("quadratic") triangulations.

Source Code:

Examples and Tests:

MESH7 is a channel with 13 hexagonal baffles. The mesh uses 512 nodes and 874 elements.

You can go up one level to the MATLAB source codes.

Last revised on 13 December 2012.