TET_MESH_DISPLAY_OPEN_GL
Display a Tet Mesh Using OpenGL


TET_MESH_DISPLAY_OPEN_GL is a C++ program, using double precision arithmetic, which reads the name of two data files defining a tetrahedral mesh ("tet mesh"), reads the data, and displays the tet mesh using OPEN_GL.

The files defining the tet mesh consist of one file containing the coordinates of the points, and a second file that lists the indices of the nodes making up each tetrahedron. Either 4-node or 10-node tetrahedrons may be used.

Usage:

tet_mesh_display_open_gl nodes.txt tetras.txt
reads the node data from nodes.txt, the tetrahedron data from tetras.txt and displays a plot of the tet mesh.

Related Data and Programs:

CVT_TET_MESH is a FORTRAN90 program which uses CVT methods to compute a tet mesh in a 3D region.

GEOMPACK3 is a FORTRAN90 library which includes a routine DTRIS3 to compute the tetrahedral mesh of a set of 3D points.

FLOOD_OPEN_GL is a C program which allows a user to select a region and flood it with color, using OpenGL, by Art Wetzel.

MATLAB includes a routine delaunay3 which can compute the tetrahedral mesh of a set of points in 3D.

OPEN_GL is used to handle the graphics display.

TABLE is the format used for the input files to TET_MESH_DISPLAY_OPEN_GL.

TABLE_TET_MESH is an interactive FORTRAN90 program for computing the tetrahedral mesh of a set of 3D points.

TEST_TET_MESH is a small FORTRAN90 library defining a few test regions for the generation of a tet mesh.

TET_MESH_DISPLAY is a MATLAB executable program which reads a tet mesh and displays the nodes and edges using the MATLAB graphical window.

TET_MESH_L2Q is a FORTRAN90 executable program which converts a linear to quadratic tet mesh.

TET_MESH_TET_NEIGHBORS is a FORTRAN90 program which computes the tetrahedral adjacency information.

TET_MESH_ORDER4 is a directory which contains a description and examples of a tet mesh using order 4 elements.

TET_MESH_ORDER10 is a directory which contains a description and examples of a tet mesh using order 10 elements.

TET_MESH_Q2L is a FORTRAN90 executable program which converts a quadratic to linear tet mesh.

TET_MESH_QUALITY can compute quality measures for a given tetrahedral mesh. This program is available in a C++ version and a FORTRAN90 version and a MATLAB version.

TET_MESH_RCM is a FORTRAN90 executable program which takes a tet mesh and relabels the nodes to reduce the bandwidth of the corresponding adjacency matrix.

TRI_MESH_DISPLAY is a MATLAB program which reads data defining a triangular mesh of a 3D surface and displays it.

Reference:

  1. Edward Angel,
    Interactive Computer Graphics,
    A Top-Down Approach with OpenGL,
    Addison-Wesley, 2000,
    T385.A514.
  2. Renate Kempf, Chris Frazier, editors,
    OpenGL Reference Manual,
    Addison-Wesley, 1997,
    T385.O642.
  3. Mason Woo, Jackie Neider, Tom Davis,
    OpenGL Programming Guide,
    Addison-Wesley, 1997,
    T385.N435.
  4. Richard Wright, Michael Sweet,
    OpenGL Superbible,
    Waite Group Press, 1996,
    T385.W73.
  5. http://www.opengl.org/
    The official OpenGL site.

Source Code:

Examples and Tests:

CUBE_ORDER4 is a cube-shaped region, which may be meshed by order-4 tetrahedrons.

TWENTY_ORDER4 is a region formed by 20 random nodes.

CUBE_ORDER10 is a cube-shaped region, which may be meshed by order-10 tetrahedrons.

ONEONEEIGHT_ORDER10 is a region formed by the refinement of 20 random nodes to 118 nodes (by adding the midside nodes.)

List of Routines:

You can go up one level to the C++ source codes.


Last revised on 15 November 2006.