tet_mesh_quality, an Octave code which computes and prints a variety of quality measures for a given tet mesh of a set of points in 3D.

The tet mesh is defined by a node file containing the coordinates of nodes, and a tetra file containing quadruples of node indices.

The quality measures computed include:

Each quality measure is defined as the minimum of its value over each tetrahedron. The maximum and best possible value is 1, and the minimum and worst value is 0.


tet_mesh_quality 'prefix'
where 'prefix' is the common file prefix:


The computer code and data files described and made available on this web page are distributed under the MIT license


tet_mesh_quality is available in a C++ version and a Fortran90 version and a MATLAB version and an Octave version.

Related Programs:


tet_mesh, an Octave code which carries out computations involving a tet mesh.

tet_mesh_boundary, an Octave code which returns the nodes and faces of the boundary of a tetrahedral mesh, which themselves form a 3d triangular mesh or TRI_SURFACE.

tet_mesh_display, an Octave code which can read in the node and tetra files defining a tet mesh and display a wireframe image.

tet_mesh_l2q, an Octave code which converts a linear to quadratic tet mesh.

tet_mesh_tet_neighbors, an Octave code which computes the tetrahedral adjacency information.

tet_mesh_q2l, an Octave code which converts a quadratic to linear tet mesh.

tet_mesh_rcm, an Octave code which takes a tet mesh and relabels the nodes to reduce the bandwidth of the corresponding adjacency matrix.

tet_mesh_refine, an Octave code which can refine a tet mesh.

tet_mesh_volumes, an Octave code which computes the volume of each tetrahedron in a tet mesh.

triangulation_quality, an Octave code which computes triangle-based quality measures for a triangulation of a set of points in 2d.


  1. Herbert Edelsbrunner,
    Geometry and Topology for Mesh Generation,
    Cambridge, 2001,
    ISBN: 0-521-79309-2,
    LC: QA377.E36.
  2. David Field,
    Qualitative Measures for Initial Meshes,
    International Journal of Numerical Methods in Engineering,
    Volume 47, 2000, pages 887-906.
  3. Barry Joe,
    GEOMPACK - a software package for the generation of meshes using geometric algorithms,
    Advances in Engineering Software,
    Volume 13, 1991, pages 325-331.
  4. Per-Olof Persson, Gilbert Strang,
    A Simple Mesh Generator in MATLAB,
    SIAM Review,
    Volume 46, Number 2, June 2004, pages 329-345.

Source code

Last revised on 06 July 2023.