skip to main content
OSTI.GOV title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: Simnple, portable, 3-D projection routine

Technical Report ·
DOI:https://doi.org/10.2172/6536922· OSTI ID:6536922

A 3-D projection routine is presented for use in computer graphics applications. The routine is simple enough to be considered portable, and easily modified for special problems. There is often the need to draw three-dimensional objects on a two-dimensional plotting surface. For the object to appear realistic, perspective effects must be included that allow near objects to appear larger than distant objects. Several 3-D projection routines are commercially available, but they are proprietary, not portable, and not easily changed by the user. Most are restricted to surfaces that are functions of two variables. This makes them unsuitable for viewing physical objects such as accelerator prototypes or propagating beams. This report develops a very simple algorithm for 3-D projections; the core routine is only 39 FORTRAN lines long. It can be easily modified for special problems. Software dependent calls are confined to simple drivers that can be exchanged when different plotting software packages are used.

Research Organization:
Sandia National Lab. (SNL-NM), Albuquerque, NM (United States)
DOE Contract Number:
AC04-76DP00789
OSTI ID:
6536922
Report Number(s):
SAND-87-0872; ON: DE87010537
Country of Publication:
United States
Language:
English