Student: kdmc Assignment: 2 Grader: Charlie ************************************************ Bresenham: program runs, buggy (55): 55 correct implementation of Bresenham (20): 20 no floats and divides (20): 10 extra credit (5): 2 ---------------------------------------------- total (100): 87 Cohen-Sutherland: program runs, buggy (55): 35 inside case correct (10): 10 outside case correct (10): 10 one clip correct (10): 10 two clips correct (10): 10 extra credit (5): 0 ---------------------------------------------- total (100): 75 Comments: ---------------------------------------------- Bresenham: Good implementation of all 8 octants but you forgot to remove the float. The assignment requires that there are no floats at all. You could also reduce the amount of code, because you only needed 1 loop to cover all 8 cases. Cohen-Sutherland: See the book H&B for the correct implementation of Cohen-Sutherland. You need to use outcodes! Your code works but it's not as efficient as Cohen-Sutherland. *************************************************