**distmesh_3d_test**,
a MATLAB program which
calls distmesh_3d() to generate and manipulate unstructured meshes
in 3D, by Per-Olof Persson.

DISTMESH 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.

distmesh_3d, a MATLAB library which constitutes the 3D subset of the distmesh() program for tetrahedral mesh generation, by Per-Olof Persson and Gilbert Strang.

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

**Problem #1** is the 3x1x1 channel, using 584 nodes and 2568 elements.

- fd01.m the signed distance function.
- fh01.m the mesh spacing function.
- distmesh_3d_test01.m runs the problem.
- p01_nodes.txt the mesh nodes of the problem.
- p01_elements.txt the tetrahedrons of the problem.
- distmesh_3d_test01.png is a PNG image of the mesh.

**Problem #2** is the vertical cylinder, using 588 nodes and 2373 elements.

- fd02.m the signed distance function.
- fh02.m the mesh spacing function.
- distmesh_3d_test02.m runs the problem.
- p02_nodes.txt the mesh nodes of the problem.
- p02_elements.txt the tetrahedrons of the problem.
- distmesh_3d_test02.png is a PNG image of the mesh.

**Problem #3** is the unit cube, using 224 nodes and 834 elements.

- fd03.m the signed distance function.
- fh03.m the mesh spacing function.
- distmesh_3d_test03.m runs the problem.
- p03_nodes.txt the mesh nodes of the problem.
- p03_elements.txt the tetrahedrons of the problem.
- distmesh_3d_test03.png is a PNG image of the mesh.

**Problem #4** is the unit sphere using 595 nodes and 2782 elements.

- fd04.m the signed distance function.
- fh04.m the mesh spacing function.
- distmesh_3d_test04.m runs the problem.
- p04_nodes.txt the mesh nodes of the problem.
- p04_elements.txt the tetrahedrons of the problem.
- distmesh_3d_test04.png is a PNG image of the mesh.

**Problem #5** is the cylinder with a spherical hole
using 165 nodes and 531 elements.

- fd05.m the signed distance function.
- fh05.m the mesh spacing function.
- distmesh_3d_test05.m runs the problem.
- p05_nodes.txt the mesh nodes of the problem.
- p05_elements.txt the tetrahedrons of the problem.
- distmesh_3d_test05.png is a PNG image of the mesh.