This paper presents a scan line algorithm for drawing picture of parametrically defined surfaces. A scan line algorithm is characterized by the order in which it generates the picture elements of the image. These are generated left to right, top to bottom in much the same was as a picture is scanned out on a TV screen. Parametrically defined surfaces are those generated by a set of bivariate functions defining the X, Y and Z position of points on the surface. The primary driving mechanism behind such an algorithm is the inversion of the functions used to define the surface. To keep the algorithm general enough to apply to a wide variety of functional forms, this inversion is done numerically. It is only required to provide mechanism for evaluating the function and its derivatives at any parametric location. The algorithm proceeds in two phases. First, a numerical search is made to find the local maxima of the Y definition function within the desired parameter ranges. These determine when portions of the surface first become visible as the scan plane progresses down the screen. Secondly, the actual scan conversion process is performed, maintaining a list of segments of the surface intersecting the current scan plane. As the scan plane passes local maxima of the Y function new segments are added to the list. In addition, any existing segments are updated to reflect their intersection with the updated scan plane. All intersection calculations are performed by a bivariate Newton-Raphson solution of the defining equations. If the solution does not converge, it is due to the scan plane passing a local minimum, causing segments to be deleted from the active list. Finally, within one scan line, an X scan must be performed to generate the Z information about the surface for each picture element. This is also performed by a bivariate Newton-Raphson iteration with a different set of defining functions.
[1]
Åke Björck,et al.
Numerical Methods
,
1995,
Handbook of Marine Craft Hydrodynamics and Motion Control.
[2]
James F. Blinn,et al.
Simulation of wrinkled surfaces
,
1978,
SIGGRAPH.
[3]
HENRI GOURAUD,et al.
Continuous Shading of Curved Surfaces
,
1971,
IEEE Transactions on Computers.
[4]
Turner Whitted,et al.
A scan line algorithm for computer display of curved surfaces
,
1978,
SIGGRAPH.
[5]
Bui Tuong Phong.
Illumination for computer generated pictures
,
1975,
Commun. ACM.
[6]
Robert F. Sproull,et al.
Principles in interactive computer graphics
,
1973
.
[7]
James F. Blinn,et al.
Computer display of curved surfaces.
,
1978
.