Computer Science 455
Instructor: R. P. Burton
Second Quiz
January 31- February 1, 2005
Name _________________________________________ Score ____________/x
What is the decision variable in the Bresenham line algorithm?
It is the slope
It is the inverse of the slope
It is the complement of the slope
It is the inverse of the complement of the slope.
(none of the above)
(e)
The parallel line algorithm is intended
for lines thicker than one pixel
for environments with multiple processors
(b)
If multiple processors are to be used to produce parts of a common line segment using the Bresenham algorithm, the repeating cycle of the Bresenham line algorithm should be identified so that each processor can be doing an identical task.
true
false
(b)
Suppose two additions and a multiplication are required to load the first point of a line segment into the frame buffer. The next point on the same line segment can be expected to require _______ calculation.
less
the same amount of
more
(a)
When using the Bresenham algorithm efficiently to produce a circle, the roles of x and y are switched to calculate the 45-to-90 degree region relative to what they were when calculating the 0-to-45 degree region of the circle.
true
false
(b)
By general consensus, the pixels used to represent the circumference of a circle should lie
as close as possible on the true circumference
outside, but as close as possible to the true circumference
inside, but as close as possible to the true circumference
(c)
For the scan-line polygon fill algorithm, vertices count as ____ intersection point(s).
zero
one
two
(can’t say in general)
(d)
To determine the order of edges (which proceed downward from a common vertex) in the active edge list (option E should read “shortest in y” )
the leftmost edge is first
the rightmost edge is first
the edge encountered first in a counterclockwise traversal is first
the edge encountered last in a counterclockwise traversal is first
the shortest edge is first
the longest edge is first
(e)
To determine if a point is inside a polygon, the point is extended beyond the boundaries of the polygon, counting the number of polygon edges that are encountered, with vertices always counting as two edges intersected.
true
false
(b)
The “count the edges crossed” and the “winding number” approach produce ______ results for self-intersecting polygons.
identical
different
(b)
For the boundary-fill algorithm, if the recursion is _____-directional, the boundary should be _____-connected.
four, four (or eight, eight)
four, eight (or eight, four)
four or eight, four or eight (i.e. no correlation is needed)
(b)
For the flood-fill algorithm, if the recursion is _____-directional, the boundary should be _____-connected.
four, four (or eight, eight)
four, eight (or eight, four)
four or eight, four or eight (i.e. correlation doesn’t matter)
(b) Note: the testing-center key was wrong on this question.
When filling a polygon with “tiles” (i.e. a cell array), the starting point must be
a vertex
a point interior to the polygon
any point in the same plane as the polygon
(c)
“Tiles” can be used to with any of the following EXCEPT
the scan-line polygon fill algorithm
the boundary-fill algorithm
the flood-fill algorithm
(no exceptions here)
(d)
Ax + By + Cz + D = 0 and –Ax – By – Cz – D = 0 describe the same plane rather than two planes which have at least one different feature.
true
false
(b)
Given the equation of a plane and the coordinates of a point, you can determine
if the point is in the plane
which side of the plane the point is on, if it is not in the plane
both (a) and (b)
(c)
Points, as represented on computer screens, can have attributes besides location.
true
false
(a)
The DDA and Bresenham algorithms lend themselves to lines that are 3 times as thick, 5 times as thick, etc. for odd multiples, but not 2 times as thick, four times as thick, etc. for even multiples.
true
false
(b)
When a manufacturer says that his graphics system can present 4,096 colors from a pallet of 16 million colors, either his system doesn’t really have 16 million colors or it is capable of presenting all 16 million colors simultaneously.
true
false
(b)
What is “soft fill”?
Rendering a polygon by its outline only
Rendering a polygon with some inaccuracies, for purposes of efficiency and preliminary assessment
Rendering a polygon with a uniform color.
(None of the above)
(d)
What is the purpose of bundling attributes?
to avoid overconstrained specifications which the user might otherwise choose
to avoid underconstrained specifications which the user might otherwise choose
to achieve visual harmony among attributes
to provide an interpretation of each attribute for each output device
(None of the above)
(d)
What is the purpose of inquiry functions?
to reveal the combination of attributes used to produce a particular (usually pleasing) effect
to facilitate changing attributes temporarily
to verify the correctness of the setting of the attributes
(b)
What is an alias?
a residual image, usually from a previous frame
an unintended artifact
a correction of the features inherent in a raster display
(b)
Prefiltering would be associated more naturally with
supersampling
area sampling
pixel phasing
(b)
Texture patterns should be adjusted, depending on the orientation of the _____ to which they are applied.
lines
polygons
lines and polygons
(c)
What is pixel phasing?
using masks to distribute the pixel’s intensity
using filters to distribute the pixel’s intensity
micropositioning the electron beam
(c)
If two polygons (one might be red and the other might be blue) share a common boundary which overlaps some pixels, a line of variable intensity (purple perhaps) will make the boundary
become clear, because there a (purple) line along the boundary
look clear because the line “covers up” the “jaggies”
look clean and crisp with no apparent line along the boundary
(c)
Which algorithm lends itself most easily to antialiasing area boundaries?
the DDA algorithm(s)
the simple DDA algorithm(s)
the Bresenham algorithm(s)
(none of these algorithms)
(c)
To “reorient” is to change
Position (i.e. translate)
Direction (i.e. rotate)
Size (i.e. scale)
(b)
The inverse of a translation, rotation, or scaling transformation is achieved by ______ the transformation parameter(s).
negating
inverting
negating and inverting
negating or inverting
(d)
When an object is to be rotated about a fixed point which is not the origin, the transformation MUST translate the fixed point to the origin, then the rotation MUST take place about the origin, and then the transformation MUST move the fixed point back to its original location, causing the object to assume two intermediate positions.
true
false
(b)
Scaling affects ______.
sizes of objects
displacement of objects relative to the origin
both (a) and (b)
(c)
All translation, rotation, and scaling transformations are reversible.
true
false
(b)