XYZF_DISPLAY_OPEN_GL
Display 3D Points and Faces Using OpenGL


XYZF_DISPLAY_OPEN_GL is a C++ program which reads XYZF information defining 3D points and faces, and displays an image using OPEN_GL.

The program displays the data, and slowly rotates it.

SXYZ_VORONOI, which computes the Voronoi diagram for a set of points on a sphere, is an example of the programs whose output can be displayed by XYZF_DISPLAY_OPEN_GL.

Usage:

xyzf_display_open_gl prefix
where reads the XYZ coordinate data in prefix.xyz and the face information in prefix.xyzf, and displays a plot of the points and faces. The image will slowly rotate. Successive mouse clicks alternate the axis of rotation from the X, to the Y, to the Z axis and back again.

Licensing:

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

Related Data and Programs:

OPEN_GL, C++ programs which illustrate the use of the OpenGL graphics library;

PLOT_POINTS is a FORTRAN90 program which reads a file of point coordinates and makes a PostScript image of them.

POLYGONAL_SURFACE_DISPLAY_OPEN_GL, a C++ program which displays a surface in 3D described as a set of polygons, using OpenGL.

ROTATING_CUBE_DISPLAY_OPEN_GL a C++ program which displays a rotating color cube in 3D, using OpenGL;

SXYZ_VORONOI is a FORTRAN90 program which computes and plots the Voronoi diagram of points on the unit sphere.

TABLE is a file format which is used for the input files to XY_DISPLAY_OPEN_GL.

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

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

XYF_DISPLAY_OPEN_GL is a C++ program which reads XYF information defining points and faces in 2D, and displays an image using OpenGL.

XYZ is a data directory which contains some examples of 3D pointsets.

XYZ_DISPLAY_OPEN_GL is a C++ program which reads an XYZ file of 3D point coordinates, and displays an image of those points using OpenGL.

XYZF is a data directory which contains some examples of sets of 3D points and faces.

XYZL is a data directory which contains some examples of sets of 3D points and lines.

XYZL_DISPLAY_OPEN_GL is a C++ program which reads XYZL information defining points and lines in 3D, and displays an image in a MATLAB graphics window.

Reference:

  1. Edward Angel,
    Interactive Computer Graphics, a Top-Down Approach with OpenGL,
    Addison-Wesley, 2000,
    ISBN: 0-201-38597-X,
    LC: T385.A514.
  2. Renate Kempf, Chris Frazier, editors,
    OpenGL Reference Manual,
    Fourth Edition,
    Addison-Wesley, 2004,
    ISBN: 032117383X,
    LC: T385.O642
  3. Mason Woo, Jackie Neider, Tom Davis,
    OpenGL Programming Guide,
    Addison-Wesley, 1997,
    ISBN: 0-201-46138-2,
    LC: T385.N435
  4. Richard Wright, Michael Sweet,
    OpenGL Superbible,
    Third Edition,
    Sams, 2004,
    ISBN: 0672326019,
    LC: T385.W73
  5. http://www.opengl.org/
    The official OpenGL site.

Source Code:

Examples and Tests:

List of Routines:

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


Last revised on 22 February 2009.