sphere_xyz_display_opengl, a C++ code which reads the name of a data file containing a list of 3D point coordinates, reads the data, and displays a unit sphere and the points using OPENGL.
It can be difficult to visualize a set of points that lie on the unit sphere. You can't see the curving surface, and you can see points that should not be visible, because they are on the other side of the sphere. By starting the display with a unit sphere, and then adding the 3D points you want to see, both of these problems are resolved. The addition of the sphere gives important visual cues as to how to "read" the data.
The program displays the data, and slowly rotates it. Clicking the mouse stops the rotation; another click starts it again, with rotation around a different axis.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
sphere_xyz_display_opengl is available in a C++ version.
FERN_OPENGL, a C++ code which uses OpenGL to display the Barnsley fractal fern.
opengl_test, C++ codes which illustrate the use of the OpenGL graphics library;
SCREENSHOT_OPENGL, a C++ code which shows how a program using the OpenGL graphics library can save a screenshot of the graphics being displayed.
SPHERE_XYZ_DISPLAY, a MATLAB program which reads XYZ information defining points in 3D, and displays a unit sphere and the points in the MATLAB graphics window.