19-12-2012, 06:26 PM
COHEN SUDHERLAND AND LINE CLIPPING ALGORITHM
COHEN SUDHERLAND AND LINE CLIPPING ALGORITHM.docx (Size: 15.4 KB / Downloads: 23)
ALGORITHM
1. Start the program.
2. Declare the variables and detect the graph variables.
3. Draw the line clipping and window-view port mapping.
4. Using for loop get the polygon variables.
5. Whether the function of the menu () is less than and construct the polygon in different manner by using SWITCH statement.
6. In case 1, transform the polygon by given input length from the original image.
7. In case 2, rotate the polygon using the given angle and looping statement from the original image.
8. In case 3, to scale the polygon from the original image by given input.
9. Menu () function give the menu options.
10. Stop the program