CSCI 360
Fall 2016,
Test 1
- Please answer each question carefully and thoughtfully. You need
to demonstrate that you understand the material covered.
- Use as many pages as you wish, but make sure that you label each answer with the question number.
- Please write neatly, and print if possible. If I can't read your answer, it is incorrect.
- Please make sure that your name is on your test.
- Please make sure that you answer all parts of the questions.
- [8 points] We have discussed two different "types" of graphics, Raster and Vector.
- Define/describe each.
- Name an advantage and a disadvantage when using each.
- Where is each be used?
- [8 points] Most graphics packages support a set of primitives.
- What is a primitive in a graphics package?
- Give examples of two different primitives.
- Primitives usually have associated attributes. Give examples of such attributes.
- We discussed two methods of associating attributes with primitives in a graphics package. Describe each.
- [6 points] Triangles
- Why are triangles preferred to polygons in modern graphics packages (give at least two reasons)
- Name two uses for a cross product when dealing with triangles in a graphics package.
- [8 points] Flood fill
- Describe the conditions where the Flood fill algorithm can be used.
- Give the Flood fill algorithm.
- When should the Flood fill algorithm be used?
- [8 points] Scan line polygon fill algorithm.
- Describe the scan line polygon fill algorithm draw a diagram that includes all cases which need to be considered and use this diagram in your discussion.
- What is the even-odd fill rule and how does it relate to this algorithm?
- [8 points] Windowing
- Define the purpose of a window and a viewport in a viewing system.
- In which coordinate system is each specified?
- Derive an equation which transforms vertices from a window specified by (xmin,ymin) to (xmax, ymax) to NDC space (-1,-1) to (1,1).