hand_mesh2d, a MATLAB code which reads in points which outline a human hand, and calls mesh2d(), which creates 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 MIT license


hand_mesh2d is available in a MATLAB version.

Related Data and Programs:

convex_hull, a MATLAB code which demonstrates the computation of the convex hull of a set of 2D points.

hand_data, a MATLAB code which carries out some numerical exercises based on data that came from tracing several points on a person's hand.


maple_area, a MATLAB code 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 code which reads an image of a maple leaf and extracts the list of pixels that form the boundary.

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

mesh2d_write, a MATLAB code 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 code which triangulates a polygonal region.


Source Code:

Last revised on 05 February 2021.