**dist_plot_test**,
a MATLAB code which
calls dist_plot(), which
creates a color contour plot of the distance function, as used in Strang and
Persson's DISTMESH program.

**DIST_PLOT** is based in part on **DISTMESH**, which
is Copyright (C) 2004 Per-Olof Persson.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

If you use DISTMESH in any program or publication, please acknowledge its authors by citing the reference.

dist_plot, a MATLAB code which makes contour plots of the distance function, as defined and used in Persson and Strang's distmesh code;

- dist_plot_test.m calls all the tests.
- dist_plot_test.sh runs all the tests.
- dist_plot_test.txt the output file.

**P01** is the circle:

- p01_nodes.txt the mesh nodes of the problem.
- p01_elements.txt the mesh triangles of the problem.
- p01_dist.png, a PNG image of a contour plot of the distance function.

**P02** is the circle with a hole:

- p02_nodes.txt the mesh nodes of the problem.
- p02_elements.txt the mesh triangles of the problem.
- p02_dist.png, a PNG image of a contour plot of the distance function.

**P03** is the square with a hole:

- p03_nodes.txt the mesh nodes of the problem.
- p03_elements.txt the mesh triangles of the problem.
- p03_dist.png, a PNG image of a contour plot of the distance function.

**P04** is the hexagon with hexagonal hole:

- p04_nodes.txt the mesh nodes of the problem.
- p04_elements.txt the mesh triangles of the problem.
- p04_dist.png a PNG image of a contour plot of the distance function.

**P05** is the horn:

- p05_nodes.txt the mesh nodes of the problem.
- p05_elements.txt the mesh triangles of the problem.
- p05_dist.png, a PNG image of a contour plot of the distance function.

**P06** is the superellipse:

- p06_nodes.txt the mesh nodes of the problem.
- p06_elements.txt the mesh triangles of the problem.
- p06_dist.png, a PNG image of a contour plot of the distance function.

**P07** is the bicycle seat:

- p07_nodes.txt the mesh nodes of the problem.
- p07_elements.txt the mesh triangles of the problem.
- p07_dist.png, a PNG image of a contour plot of the distance function.

**P08** is the holey pie slice:

- p08_nodes.txt the mesh nodes of the problem.
- p08_elements.txt the mesh triangles of the problem.
- p08_dist.png, a PNG image of a contour plot of the distance function.

**P09** is Jeff Borggaard's square with two hexagonal holes:

- p09_nodes.txt the mesh nodes of the problem.
- p09_elements.txt the mesh triangles of the problem.
- p09_dist.png a PNG image of a contour plot of the distance function.

**P10** is the unit square:

- p10_nodes.txt the mesh nodes of the problem.
- p10_elements.txt the mesh triangles of the problem.
- p10_dist.png a PNG image of a contour plot of the distance function.

**P11** is the L-shaped region:

- p11_nodes.txt the mesh nodes of the problem.
- p11_elements.txt the mesh triangles of the problem.
- p11_dist.png, a PNG image of a contour plot of the distance function.

**P12** is the John Shadid's H-shaped region:

- p12_nodes.txt the mesh nodes of the problem.
- p12_elements.txt the mesh triangles of the problem.
- p12_dist.png a PNG image of a contour plot of the distance function.

**P13** is the Sandia fork:

- p13_nodes.txt the mesh nodes of the problem.
- p13_elements.txt the mesh triangles of the problem.
- p13_dist.png a PNG image of a contour plot of the distance function.

**P14** is Marcus Garvie's Lake Alpha, with Beta Island:

- p14_nodes.txt the mesh nodes of the problem.
- p14_elements.txt the mesh triangles of the problem.
- p14_dist.png, a PNG image of a contour plot of the distance function.

**P15** is Sangbum Kim's forward step region:

- p15_nodes.txt the mesh nodes of the problem.
- p15_elements.txt the mesh triangles of the problem.
- p15_dist.png, a PNG image of a contour plot of the distance function.

**P16** is Kevin Pond's elbow:

- p16_nodes.txt the mesh nodes of the problem.
- p16_elements.txt the mesh triangles of the problem.
- p16_dist.png, a PNG image of a contour plot of the distance function.

**P17** is the channel with a Reuleaux triangle obstruction:

- p17_nodes.txt the mesh nodes of the problem.
- p17_elements.txt the mesh triangles of the problem.
- p17_dist.png, a PNG image of a contour plot of the distance function.

**P18** is the dumbbell region:

- p18_nodes.txt the mesh nodes of the problem.
- p18_elements.txt the mesh triangles of the problem.
- p18_dist.png, a PNG image of a contour plot of the distance function.