Student: liberal Assignment: 2 Grader: Charlie ************************************************ Bresenham: program runs, buggy (55): 55 correct implementation of Bresenham (20): 20 no floats and divides (20): 20 extra credit (5): 2 ---------------------------------------------- total (100): 97 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 job! You further simplify the code by combining the all the loops into 1... if you want. Cohen-Sutherland: See the book H&B for a correct implementation of Cohen-Sutherland. You should have used LEFT, RIGHT, TOP, and BOTTOM to create your outcodes. Then you could have used bitwise operations as oppose to integer operations. Plus, you should have used your outcodes to figure out where you should clip. You could also have reduced redundant code by implementing the procedure in a loop or recursively. *************************************************