# hand_mesh2d

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.

### Languages:

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.

### Reference:

• Cleve Moler,
Numerical Computing with MATLAB,
SIAM, 2004,
ISBN13: 978-0-898716-60-3,
LC: QA297.M625.

### Source Code:

• hand_mesh2d.m, a function which reads the hand vertex data, calls MESH2D to determine and display the triangulation, and writes the node and element data to files.

• hand_vertices.txt, the original hand data, which simply lists the X and Y locations of 59 points that outline a hand.

Last revised on 05 February 2021.