distmesh_test, a MATLAB code which calls distmesh(), which generates unstructured meshes.


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.

Related Data and Programs:

distmesh, a MATLAB code which carries out triangular or tetrahedral mesh generation, by Per-Olof Persson and Gilbert Strang.

Source Code:

P01 is the circle:

P02 is the circle with a hole:

P03 is the square with a circular hole:

P04 is the hexagon with a hexagonal hole:

P05 is the horn:

P06 is the superellipse:

P07 is the bicycle seat:

P08 is the holey pie slice:

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

P10 is the unit square, with uniform density.

P11 is the L-shaped region:

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

P13 is the Sandia fork:

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

P15 is Sangbum Kim's forward step region:

P16 is Kevin Pond's elbow, a quarter of a circular annulus:

P17 is a rectangular region with a Reuleaux triangle obstacle.

P18 is a dumbbell shape, two circles connected by a rectangular channel.

P19 is a triangle:

P20 is a rough draft of the first floor of ICAM's Wright House:

P21 is Zhu Wang's 3x3 square with a "quarter round" bite taken out.

P22 is Hans-Werner van Wyk's "Big C", which allows two portions of the region to be "physically close" although a path from one portion to the other must take the long way around.

P23 is Mike Schneier's unit square, with nonuniform density.

P24 is the outline of a hand, with nonuniform density.

Last revised on 09 January 2019.