skip to main content

Algorithm 834: glsurf---an interactive surface plotting program using OpenGL

Published:01 June 2004Publication History
Skip Abstract Section

Abstract

We describe an interactive surface visualization tool implemented in C, OpenGL, and GLUT. The surface is represented by a set of triangles in Euclidean 3-space, thus allowing for unrestricted topology. Capabilities include color-filled contour plots (for the graph of a bivariate function) and surface perspective plots with lighting and smooth shading. Interactive zooms and axis rotations are executed with a single keypress or mouse motion. The advantage of this code over the many alternatives is that it is small, simple, portable, easy to install and use, and the source code is available if the user wishes to change defaults, add light sources, or whatever.

Skip Supplemental Material Section

Supplemental Material

References

  1. Kilgard, M. 1996. OpenGL Programming for the X Window System, Addison-Wesley, Reading, MA. Google ScholarGoogle Scholar
  2. OpenGL Architecture Review Board. 1997. OpenGL Programming Guide, Addison-Wesley, Reading, MA.Google ScholarGoogle Scholar

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in

Full Access

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader