TEST_TRIANGULATION
Mesh Generation Test Regions


TEST_TRIANGULATION is a library of MATLAB routines, which can set up a number of triangulation test problems.

As far as possible, a uniform and abstract approach has been used. For each test region, a number of routines are provided, via which it is possible for the user to determine many things about the region. Often, just one or two routines would be needed for a particular purpose. The names of the routines, and their purposes are:

The test problems include:

  1. The unit circle;
  2. The unit circle with a circular hole;
  3. A square with a circular hole;
  4. A hexagon with a hexagonal hole;
  5. The horn;
  6. The superellipse with a superelliptical hole;
  7. The bicycle seat;
  8. The slice of pie with a circular hole and triangular notch;
  9. Jeff Borggaard's square with two hexagonal holes;
  10. The unit square;
  11. The L-shaped region;
  12. John Shadid's H-shaped region;
  13. The Sandia fork;
  14. Marcus Garvie's Lake Alpha, with Beta Island;
  15. Sangbum Kim's forward step;

Related Data and Programs:

CVT_TRIANGULATION is example application which uses this library of test regions and attempts to create a CVT-based triangularization.

DISTMESH is a MATLAB program which can work from a simple description of the boundary of a region to produce a triangulation of that region.

HEX_GRID_TRIANGULATE is an example application which uses this library of test regions and computes points on a hexagonal grid inside each region.

TEST_TRIANGULATION is also available in a FORTRAN90 version.

TRIANGULATION is a MATLAB library of routines for carrying out various operations on order 3 ("linear") or order 6 ("quadratic") triangulations.

TRIANGULATION_DISPLAY_OPEN_GL is an executable C++ program which reads files defining a triangulation and displays an image using Open GL.

The TRIANGULATION ORDER3 directory describes the format for triangulations of order 3.

The TRIANGULATION ORDER6 directory describes the format for triangulations of order 6.

Reference:

  1. Per-Olof Persson and Gilbert Strang,
    A Simple Mesh Generator in MATLAB,
    SIAM Review,
    Volume 46, Number 2, June 2004, pages 329-345.

Tar File:

A GZIP'ed TAR file of the contents of this directory is available. This is only done as a convenience for users who want ALL the files, and don't want to download them individually. This is not a convenience for me, so don't be surprised if the tar file is somewhat out of date.

Source Code:

Examples and Tests:

One of the routines in TEST_TRIANGULATION_PRB calls the appropriate routines to determine the boundary of each region, and creates an Encapsulated PostScript image.

One of the routines in TEST_TRIANGULATION_PRB creates an EPS image of sample points in each region.

One of the routines in TEST_TRIANGULATION_PRB calls the appropriate routine to create a POLY file, which can be displayed by the SHOWME program, or used as the start of a triangulation process involving TRIANGLE.

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


Last revised on 24 October 2006.