TRIANGULATION_DISPLAY_OPEN_GL
Display a Triangulation Using OpenGL


TRIANGULATION_DISPLAY_OPEN_GL is an executable C++ program, using single precision arithmetic, that reads the name of two data files defining a triangulation, reads the data, and displays the triangulation using OPEN_GL.

The files defining the triangulation consist of one file containing the coordinates of the points, and a second file that lists the indices of the nodes making up each triangle. Either 3-node or 6-node triangles may be used.

Usage:

triangulation_display_open_gl nodes.txt triangles.txt
reads the node data from nodes.txt, the triangle data from triangles.txt and displays a plot of the triangulation.

Related Data and Programs:

FEM_BASIS_T3_DISPLAY is a MATLAB program which displays a basis function associated with a linear triangle ("T3") mesh.

FEM_BASIS_T6_DISPLAY is a MATLAB program which reads a quadratic triangle mesh and displays any associated basis function.

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.

OPEN_GL is used to handle the graphics display.

TABLE is a format used for the input files to TRIANGULATION_DISPLAY_OPEN_GL.

TABLE_DELAUNAY is an executable C++ program which computes the Delaunay triangulation of a set of points.

TABLE_IO is a C++ library which supplies the routines used to read the TABLE file.

TABLE_VORONOI is an executable C++ program which can be used to compute information about the Voronoi diagram of the points.

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

TRIANGULATION_MASK is an executable C++ program, which takes an existing triangulation and deletes triangles and their corresponding nodes as requested by the user.

TRIANGULATION_ORDER3 is a directory which contains a description and examples of order 3 triangulations.

TRIANGULATION_ORDER6 is a directory which contains a description and examples of order 6 triangulations.

TRIANGULATION_PLOT is an executable C++ program that reads data defining a triangulation and creates a PostScript image of the nodes and triangles.

Reference:

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

Source Code:

Examples and Tests:

ELL is an L-shaped region, which may be triangulated by order-3 triangles.

ELL is an L-shaped region, which may be triangulated by order-6 triangles.

List of Routines:

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


Last revised on 15 November 2006.