POLYGONAL_SURFACE_DISPLAY_OPENGL is a C++ program which gets the names of the node and element files defining a polygonal surface, reads the information from the files, and displays the surface on the screen using OpenGL.
The surface is presented in rotation about the X axis. By clicking the mouse button, the axis of rotation will be advanced from X to Y to Z and back to X.
polygonal_surface_display prefixwhere prefix is the common filename prefix, so that:
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
POLYGONAL_SURFACE_DISPLAY_OPENGL is available in a C++ version.
BEZIER_SURFACE_DISPLAY, a MATLAB program which reads two files defining a Bezier surface and displays it.
CAUSTIC_OPENGL, a C++ program which computes a caustic curve and displays it using OpenGL.
FERN_OPENGL, a C++ program which uses OpenGL to display the Barnsley fractal fern.
LIFE_OPENGL, a C++ program which simulates a version of John Conway's "Game of Life", displaying the results using OpenGL.
LIGHTS_OUT_OPENGL, a C++ program which sets up a "Lights Out" game and allows the user to solve it, using the OpenGL graphics window.
LISSAJOUS_OPENGL, a C++ program which computes a Lissajous figure and displays it using OpenGL.
OPENGL, C++ programs which illustrate the use of the OpenGL graphics library;
OBJ_DISPLAY, a MATLAB program which reads an OBJ file defining a 3D object and displays it within MATLAB.
POLYGONAL_SURFACE, a data directory which contains examples of polygonal surface files.
POLYGONAL_SURFACE_DISPLAY, a MATLAB program which displays a surface in 3D described as a set of polygons.
ROTATING_CUBE_DISPLAY_OPENGL, a C++ program which displays a rotating color cube in 3D, using OpenGL;
SCREENSHOT_OPENGL, a C++ program which shows how a program using the OpenGL graphics library can save a screenshot of the graphics being displayed.
SPHERE_XYZ_DISPLAY_OPENGL, a C++ program which reads XYZ information defining points in 3D, and displays a unit sphere and the points, using OpenGL.
STLA_DISPLAY, a MATLAB program which reads an ASCII STL file and displays it.
TET_MESH_DISPLAY, a MATLAB program which reads files defining a tet mesh and displays an image within MATLAB.
TET_MESH_DISPLAY_OPENGL, a C++ program which reads files defining a tet mesh and displays an image using Open GL.
TRI_SURFACE_DISPLAY_OPENGL, a C++ program which displays the 3D graphics information in a TRI_SURFACE file using OpenGL.
TRIANGULATION_DISPLAY_OPENGL, a C++ program which reads files defining a triangulation and displays an image using Open GL.
TRIANGULATION_ORDER1_DISPLAY, a MATLAB program which reads files defining a piecewise constant triangulation of data, and displays a corresponding 3D surface.
XY_DISPLAY_OPENGL, a C++ program which reads an XY file of 2D point coordinates, and displays an image of those points using OpenGL.
XYL_DISPLAY_OPENGL, a C++ program which reads XYL information defining points and lines in 2D, and displays an image using OpenGL.
XYZ_DISPLAY_OPENGL, a C++ program which reads an XYZ file of 3D point coordinates, and displays an image of those points using OpenGL.
SPHERE_T3 is a sphere, tiled with an 8 by 8 array of logically triangular patches.
You can go up one level to the C++ source codes.