DIST_PLOT
Contour Plots of Distance Function


DIST_PLOT is a MATLAB routine which can create a color contour plot of the distance function, as used in Strang and Persson's DISTMESH program.

Usage:

dist_plot ( p, t, fd );
takes:

Related Data and Programs:

CONTOUR_SEQUENCE is a MATLAB program which creates contour images suitable for animation from a sequence of (X,Y,U(X,Y)) files.

DISTMESH is a MATLAB program which is Strang and Persson's code for generating meshes over regions with an associated distance function.

TABLE_IO is a MATLAB library which reads and writes files using the TABLE format; these routines are used by DIST_PLOT_DEMO when reading the input files.

TEST_TRIANGULATION is a FORTRAN90 library which defines some test regions for triangulation.

TRIANGULATION_ORDER3 is a data directory which discusses order 3 triangulations; The node and triangle files input to DIST_PLOT are an example of such triangulations.

TRIANGULATION_PLOT is a MATLAB program which can make a plot of a triangulation.

TRIANGLE is a C program which can triangulate a region.

Reference:

  1. http://math.mit.edu/~persson/mesh Per-Olof Persson's web site.
  2. Per-Olof Persson, Gilbert Strang,
    A Simple Mesh Generator in MATLAB,
    SIAM Review,
    Volume 46, Number 2, June 2004, pages 329-345,
    Available online at ../../pdf/persson.pdf

Source Code:

Examples and Tests:

DIST_PLOT_DEMO displays plots for all the standard problems used in DISTMESH:

Routines to read and write data to files (borrowed from TABLE_IO) include:

P01 is the circle:

P02 is the circle with a hole:

P03 is the square with a hole:

P04 is the hexagon with 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:

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:

You can go up one level to the MATLAB source codes.


Last revised on 14 March 2008.