MESH2D Applied to Hand Outline

MESH2D_HAND is 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.

The original proposer of the hand data exercise was Cleve Moler, in the textbook Numerical Computing with MATLAB.

MESH2D is a powerful and easy-to-use program, by Darren Engwirda, for creating a good quality mesh of a region when the polygonal outline of its boundary is given.

The point of this exercise is simply to emphasize that a fairly general shape region can easily be triangulated, requiring little work from the user.


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


MESH2D_HAND is available in a MATLAB version.

Related Data and Programs:

CONVEX_HULL, a MATLAB program which demonstrates the computation of the convex hull of a set of 2D points.

HAND_DATA, MATLAB programs which carry out some numerical exercises based on data that came from tracing several points on a person's hand.

MAPLE_AREA, a MATLAB library which takes the list of pixels that form the boundary of the image of a maple leaf within a picture, and uses grid, Monte Carlo, and Quasi Monte Carlo sampling to estimate the area of the leaf.

MAPLE_BOUNDARY, a MATLAB library which reads an image of a maple leaf and extracts the list of pixels that form the boundary.

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

MESH2D_WRITE, a MATLAB program which demonstrates how MESH2D node and element data can be written to files.

POLYGON, a dataset directory which contains examples of polygons.

TRIANGULATE, a MATLAB program which triangulates a polygonal region.


Source Code:

Examples and Tests:

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

Last revised on 17 January 2016.