CSCI 360

Fall 2016, Test 1


  1. [8 points] We have discussed two different "types" of graphics, Raster and Vector.
    1. Define/describe each.
    2. Name an advantage and a disadvantage when using each.
    3. Where is each be used?
  2. [8 points] Most graphics packages support a set of primitives.
    1. What is a primitive in a graphics package?
    2. Give examples of two different primitives.
    3. Primitives usually have associated attributes. Give examples of such attributes.
    4. We discussed two methods of associating attributes with primitives in a graphics package. Describe each.
  3. [6 points] Triangles
    1. Why are triangles preferred to polygons in modern graphics packages (give at least two reasons)
    2. Name two uses for a cross product when dealing with triangles in a graphics package.
  4. [8 points] Flood fill
    1. Describe the conditions where the Flood fill algorithm can be used.
    2. Give the Flood fill algorithm.
    3. When should the Flood fill algorithm be used?
  5. [8 points] Scan line polygon fill algorithm.
    1. 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.
    2. What is the even-odd fill rule and how does it relate to this algorithm?
  6. [8 points] Windowing
    1. Define the purpose of a window and a viewport in a viewing system.
    2. In which coordinate system is each specified?
    3. Derive an equation which transforms vertices from a window specified by (xmin,ymin) to (xmax, ymax) to NDC space (-1,-1) to (1,1).