Computer Science 455
Instructor: R. P. Burton
Third Quiz
February 21-22, 2006
Name _________________________________________ Score ____________/31
Suppose x points up, y points right, and the rotation is counterclockwise. Where is the minus sign?
(1,2)
(2,1)
(a)
Suppose you are solving a problem in 4D space (x, y, z, and w) and you wish to do rotation involving the y and w planes. Which position does not have a 1 in it?
(1,1)
(2,2)
(3,3)
(b)
To rotate a 6-sided polygon “about” an arbitrary point in 2D using a well-written graphics package, how many 3x3 matrices are composed at runtime?
none
one
two
three
more than three
they should be composed algebraically in advance)
A 3x3 matrix can scale a 2D shape only in x and/or y, but not in some arbitrary direction in the plane.
true
false
(b)
Shearing is most like
translation
scaling
rotation
(b)
The inverse of a shearing matrix is formed by
negating the shearing value
inverting the shearing value
negating and inverting the shearing value
transposing the shearing value across the diagonal
(a)
Two shearing matrices – one involving x and the other involving y – are commutative.
true
false
(b)
In 2D, reflection occurs
across a principal axis
across an arbitrary line
through a point
(any of the above)
(d)
Suppose the transformation matrix has 0s everywhere except along the diagonal, which has -1 in positions (1,1) and (2,2), and a 1 in (3,3). This represents
scaling
rotation
reflection
(any of the above)
(d)
If the geometry is described relative to coordinate system A, but we would like it to be described relative to coordinate system B, we should
find a transformation which maps A to B and apply it to the data
find a transformation which maps A to B and apply it to A
find a transformation which maps B to A and apply it to the data
find a transformation which maps B to A and apply it to B
(c)
A bit-block transfer (or a pix-block transfer) can take place
unless the two blocks overlap at all
unless the two blocks overlap in both x and y
even if the two blocks overlap in both x and y
(c)
Rotation in 3D can take place “about an arbitrary axis” even if (pick the most inclusive answer)
the arbitrary axis is not a principal axis
the arbitrary axis is not parallel to a principal axis
the arbitrary axis does not pass through the origin
all of the above (a, b, and c) are true
(d)
The composed matrix which represents 3D rotation “about an arbitrary axis” (to the extent this is possible) consists of ____ rotation matrix/matrices.
1
2
3
4
5
(e)
If it can refer to only one of the following, a “window” refers to a region of the_______.
display
world
(b)
A change to the window produces a(n) ___________ change in the display; a change to the viewport produces a(n) ___________ change in the display.
corresponding, corresponding
corresponding, inverse
inverse, corresponding
inverse, inverse
(c)
The window-to-viewport transformation represents a mapping of one coordinate system onto another coordinate system.
true
false
(a)
For a point to be clipped against a rectangular clipping window, it must fail _____ of four tests.
any one
at least two
all four
(a)
A line segment that is completely outside a clipping region is always trivially rejected by the Cohen-Sutherland algorithm.
true
false
(b)
A line segment which is not trivially rejected by the Cohen-Sutherland algorithm has at least one visible subsegment (possibly even a proper subsegment).
true
false
(b)
The principal advantage of the Liang-Barsky algorithm is
the simplicity of the instructions it must execute
the detection of cases which obviate the need for further processing
its adaptability to geometric entities besides lines
(b)
Nicholl Lee Nicholl can detect line segments which do not intersect any clipping region boundaries.
true
false
(a)
Nicholl Lee Nicholl places the first endpoint of a line segment into one of ____ general categories.
2
3
4
8
9
(b)
Clipping (to axis-aligned) boundaries is not meaningful for rotated clipping regions. The (contents of the) clipping region must first be rotated to align with the axes before any meaningful clipping can be done.
true
false
(b)
Sutherland-Hodgman does the same basic task ____ times to clip an area against an aligned, rectangular clipping region.
2
4
8
(b)
Which lends itself more to clipping regions which have arbitrary (and possibly concave) polygonal shapes?
Sutherland-Hodgman
Weiler-Atherton
Neither lends itself better than the other
(c)
Algorithms for reverse clipping (aka “blanking”) are conceptually ________ algorithms for clipping.
the same as
different from
(a)
All things considered, the better place to clip is in _______ coordinates.
device
world
(a)
Curve clipping is fundamentally ______ point and line clipping.
the same as
different from
(a)
If a clipping algorithm processes entities of dimension n, it should produce (zero or more) entities of dimension ____.
n+1
n
<= n
n-1
(b)
In order to transform from one 3D coordinate system to another 3D coordinate system,
both systems must be either left-handed or right handed
both systems must use the same units of measurement
corresponding axes must be parallel to one another
(none of these restrictions applies)
(d)
Mice are not suitable for graphics input if the mouse “slides” (i.e. the mouse is moved, but the cursor does not respond).
true
false
(b)