Student: jnye Assignment: 2 Grader: Charlie ************************************************ Bresenham: program runs, buggy (55): 55 correct implementation of Bresenham (20): 5 no floats and divides (20): 20 extra credit (5): 0 ---------------------------------------------- total (100): 80 Cohen-Sutherland: program runs, buggy (55): 55 inside case correct (10): 10 outside case correct (10): 5 one clip correct (10): 10 two clips correct (10): 10 extra credit (5): 0 ---------------------------------------------- total (100): 90 Comments: ---------------------------------------------- Bresenham: You've managed to have coded a line-drawing algorithm that does not use floating points and divisions, but this is not Bresenham's algorithm. See the book H&B for the correct algorithm. You are missing the error index... Cohen-Sutherland: Mostly correct except for when a line should be external but your algorithm returns clipped. This happens when the line is not immediately trivially rejected. For example, a line that has endpoints with outcodes 0100 and 0001. NOTE: Nice homepage! *************************************************