Computer Science 455
Instructor: R. P. Burton
Second Quiz
September 26-27, 2005
Name _________________________________________ Score ____________/46
The implicit equation for a circle leads to an algorithm which generates points in a manner which is
slow and shoddy
fast and shoddy
fast and not shoddy
slow and not shoddy
(a)
The parametric equation for a circle leads to an algorithm which generates points in a manner which is
slow and shoddy
fast and shoddy
fast and not shoddy
slow and not shoddy
(d)
Once you have determined the coordinates of a point (a,b) on a circle, simple arithmetic leads immediately to the coordinate(s) of ____ other points on the circle.
no
one
three
seven
fifteen
more than fifteen
(d)
The (final version of the) circle-drawing DDA algorithm discussed in class produces
a circle
a helix
an ellipse
(c)
The DDA line-drawing algorithm can be adapted easily to produce
lines with an “odd multiple” thickness
lines with an “even multiple” thickness
both (a) and (b)
(c)
What is the intuitive meaning of the decision variable in the Bresenham line-drawing algorithm?
there is none
which of two pixel centers is closer to the true line
how many points have been plotted since the coordinate of the axis of least excursion has been incremented
how nearly complete is the drawing of the line
(b)
A stereo (viewing) box has
no mechanical parts and no electrical parts
mechanical parts
electrical parts
electrical and mechanical parts
(a)
Determining frame buffer locations associated with a line (or the circumference of a circle) takes _______ along the line (or the circumference).
essentially the same amount of time for all points
different amounts of time for different kinds of points
(b)
Suppose a scene is composed by randomly generating the color of each pixel. Which of the following techniques could be expected to reduce the amount of memory needed to store the scene?
run-length encoding
cell encoding
both
neither
(d)
Suppose the outline of a polygon is scan-converted into the frame buffer and the odd-parity rule is used to determine if a particular point is inside or outside the polygon. No point interior to the outline is of the same color as the outline. Counting the number of outline-colored pixels encountered in shooting a ray from the “particular point” until the ray is outside the polygon provides enough information to determine if the “particular point” is inside or outside the polygon.
true
false
(b)
The winding-number rule for inside/outside testing makes use of vector ____-products.
dot
cross
dot of cross
(c)
A boundary-fill (or flood-fill) algorithm is most efficient if it processes a pixel and then considers
the four neighboring pixels
the eight neighboring pixels
all the pixels on the same scan-line
(c)
Suppose a polygonal area is to be filled with tiles (i.e. a two-dimensional grid pattern). The first tile
must be positioned so that its origin coincides with a vertex of the polygon
must be positioned so that its origin is interior to the polygon
can be placed anywhere
(c)
What is a polymarker?
a marker with multiple attributes
a collection of several markers
a polyline with the connecting line segments omitted
(b)
Ax + By + Cz + D = 0 and –Ax – By - Cz – D = 0 represent
the same plane (with the same normal)
different planes (with different normals)
(b)
Points, when presented on a computer screen
have no attributes other than position
have one or more attributes other than position
(b)
Texture is meaningful for all of the following except
lines
polygons
polyhedra
(no exceptions here)
(d)
_____ be used to produce equivalent results for different lines with different orientations.
The same intensity/pixel and pixel mask can
The same intensity/pixel but a different pixel mask must
The same pixel mask but a different intensity must
A different intensity and a different pixel mask must
(d)
The slope of a line (to be represented with butt caps) is m. The slope of the butt cap is
m
–m
1/m
-1/m
(d)
A round joint achieved by drawing a circle at the intersection of the two lines (forming the intersection) and of a diameter determined by the line thickness affects the appearance of
The outside of the joint
The inside of the joint
both the outside and the inside of the joint
(a)
Color look-up tables were useful in the days when memory (for the frame buffer, for example) was expensive, but, at least for the present, have no practical use.
true
false
(b – color-table animation)
Soft fill is achieved by
using the flood-fill algorithm to write the polygon into the frame buffer
using the boundary-fill algorithm to write the polygon into the frame buffer
mixing the color of a foreground polygon with the information already written into the frame buffer
(c)
What does it mean to “bundle” attributes?
to compress attributes to make them more storage-efficient – a carry over from earlier days
to treat attributes uniformly for all primitives (treating lines as degenerate planes, points as degenerate lines, etc.)
to map user-specified attributes to attributes available on a the available output devices (for contexts with multiple attributes)
to provide “desirable” collections of compatible attributes (usually based on aesthetic considerations)
(c)
What is the primary purpose of an “inquiry” function?
to permit the user to discover how a particular effect was achieved
to permit temporary changes to attributes
to discover the feasibility/availability of an attribute of potential interest
(b)
The most inclusive example of a “line” which manifests aliasing is
any line drawn on a raster CRT
any line which is copied to a new location on a CRT
the blank space left after a line on a CRT is rewritten with background color
(a)
A Merry-Go-Round has 10 horses. Each is a “horse of a different color.” You are looking through a doorway in which only one complete horse can be visible at any point in time. A complete new horse is visible every 3 seconds. You’re busy learning about Nyquist, but you wish to look through the doorway frequently enough to see every horse. How often should you sample?
every 1.5 seconds
every 3 seconds
every 6 seconds
(a)
_____ determines which pixels are inside a finite-width line.
Prefiltering
Postfiltering
(b)
______ determines the extent to which a pixel area is overlapped.
Prefiltering
Postfiltering
(a)
How is pixel phasing implemented on a typical monitor?
by prefiltering
by postfiltering
it isn’t
(c)
When subpixel masks are used, more weight is given to subpixels near the
true position of the line to be scan-converted
center of the pixel
(b)
A green polygon and a blue polygon share a common 38° boundary. To make the boundary appear smooth, the boundary should be
all green or all blue
various shades of cyan (which is a mixture of green and blue)
all black to clearly mark the boundary
(b)
Geometric transformations, as discussed in class, can change _____. (pick the most inclusive answer)
position
position and orientation
position, orientation, and size
position, orientation, size, and shape
position, orientation, size, shape, and a reversal of the order in which vertices are encountered in a counterclockwise traversal
position, orientation, size, shape, and the order in which vertices are encountered (to any permutation of the original order) in a counterclockwise traversal
(e)
A circle is most efficiently translated by
generating the points around the circumference of the circle adding the translation factor to each point.
translating the center of the circle, and then generating the points around its circumference.
(a)
Rotation of a polygon through “theta” degrees occurs
around its first vertex (i.e. the vertex specified first)
around its “center of mass”
around the origin
(c)
Rotation of a polygon around it’s first vertex, around its center of mass, or around the origin may require
translation
multiple rotations
the development of new computer graphics techniques
(a)
When a convex polygon which does not include the origin is scaled with a scaling factor > 1,
its position remains fixed, but its size increases
its position changes, but its size stays the same
its position changes and it size increases
neither its position nor its size changes
(c)
Two-dimensional translation, rotation, and scaling use a 3 x 3 transformation matrix (rather than a 2 x 2 transformation matrix) primarily to accommodate
translation
rotation
scaling
(a)
The inverse of a translation, rotation, or scaling transformation is best achieve by using
Gauss elimination with partial pivoting
Gauss elimination with full pivoting
Simple algebra and/or geometry
(c)
The inverse of translation, rotation, AND scaling (i.e. at least one of each) is best achieved by
reapplying the same transformations in the same order (effectively “complementing”)
applying the same transformations in the opposite order
applying the inverses of the transformations in the same order
applying the inverses of the transformations in the opposite order
(it can’t be done; once the transformation is done, it is irreversible)
(d)
What transformation is represented by the following matrix:
-1 0 0
0 -1 0
0 0 1
rotation
scaling
reflection
(all of the above)
(d)
Reflection in 2D can be though of as occurring
across a line
through a point
either (a) or (b)
(c)
Reflection across an arbitrary line which passes through the origin can be done ONLY by rotating the arbitrary line so that it lies along the y-axis, by reflecting across the y-axis, and by rotating so that the line returns to its original position.
true
false
(b)
Both of the following are possible EXCEPT
reflection across an arbitrary line which does NOT pass through the origin
reflection through an arbitrary point
(both (a) and (b) are possible)
(neither (a) nor (b) is possible)
(c)
What does it mean to “shear” a square?
to cut one side, usually diagonally
to cut two opposite sides, usually diagonally
to cut all four sides, usually diagonally
to adjust a coordinate based in the value of another coordinate
(d)
The inverse of a shearing matrix with a single shearing factor s is achieved b
a shearing matrix with a single shearing factor –s
a shearing matrix with a single shearing factor 1/s
a shearing matrix with a single shearing factor -1/s
(none of the above)
(a)
Suppose a transformation matrix scales along the 38° line. This can be shown to be equivalent to (or different from) shearing in x and in y simply by algebraically comparing the 38° line scaling matrix and the shearing matrix.
true
false
(you can’t scale along a 38° line)
(a)