Student: treacle Assignment: 2 Grader: Damian ************************************************ Bresenham: program runs (55): 55 correct implementation of Bresenham (20): 20 no floats and divides (20): 20 extra credit (5): 5 ---------------------------------------------- total (100): 100 Cohen-Sutherland: program runs (55): 55 inside case correct (10): 10 outside case correct (10): 10 one clip correct (10): 10 two clips correct (10): 5 extra credit (5): ---------------------------------------------- total (100): 90 Comments: ---------------------------------------------- Bresenham: Smartass. Cohen-Sutherland: There are cases where your algorithm draws outside of the clip region. Try drawing a line from the region to the left of the viewport to the region above the viewport (i.e. crossing two boundaries). You'll see at some point a black line appear in the region to the top-left of the viewport. It is certainly possible to do Cohen Sutherland in a non-recursive way, but the recursive version tends to be clearer and easier to implement. *************************************************