TEST 1 - CS458 Fall 2000

TEST 1 - CS458

Instructor Dr P Juell                         NAME_______________________ 
CLOSED BOOK                                             Sep 27, 2000
100 points         
  1. (16) Give two things you could do to make the effects of jaggies MORE pronounced (in a specific case). (or for 8 points - Give two things you could do to reduce the effects of jaggies (in a specific case)).
    
    
    
    
    
    
  2. (15) You have a command to create a triangle (TRI) at the origin, the translation (T(x,y)), scale (S(x,y)) and rotation (R(A)) commands. Specify a sequence of commands to create the following figure. The small triangle is the size created by TRI and the other is doubled in size. You also need to show what the TRI command does.
                   (10,6)
    |              /\
    |           __/__\__
    |           \      /
    |            \    /
    |             \  /
    |______________\/_______
                   (10,0)
    
    
    
    
    
    
    
  3. (15) Specify a vtk type file to describe a square.
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  4. (20) VTK and GKS are somewhat different approaches to tool kits to build graphical images. Give a short summary of when the two systems would be useful. For this give a general statement and a particular example for each notation. (Base this on the limited introduction you have of the two notations).
    
    
    
    
    
    
    
    
    
    
  5. (14) Two ways to store information are in raster and polyline forms. Present two good reasons that information such as a outline of the US would be better stored in a polygon rather than a raster form.
    
    
    
    
    Present two good reasons for using raster over a polygon.
    
    
    
    
  6. (10) Pallet (tables) are used on monitors to reduce cost. What is being saved (reduced in cost) by use a pallet rather than displaying full color for every pixel?
    
    
    
    
  7. (10) The heart of a program implementing the Bresenham line drawing algorithm is an IF statement (in a loop). What does the IF statement test and what are the two actions it chooses between?
    
    
    
    
    
    
  8. (10) Circle the best answer

    TRUE or FALSE - The Odd/Even fill rule will work correctly for a donut (that is a circle within a circle, where the "hole" is not to be filled).

    TRUE or FALSE - The Odd/Even fill rule will work correctly for intersecting circles (where all of each circle is to be filled).