You are on page 1of 1

Exercises:

1. Implement cohend Sutherland clipping algorithm clipping window xmin=40, xmax=100, ymin=30, ymax=60 clip the following lines L1(50,50) and (70,40) L2(90,70) and (70,50) L3(80,10) and (120,45) L4(30,20) and (110,45) 2. Write a procedure to implement the Liang-Barsky line-clipping algorithm. 3. Set up a detailed algorithm for Nicholl-Lee-Nicholl approach to line clipping for any pair of line endpoints. 4. Devise an algorithm for Weiler-Atherton polygon clipping where the clipping window can be any specified polygon. 5. Develop an text clipping algorithm that clips individual characters assuming that the characters are defined in a pixel grid of a specified size. 6.Write a routine to implement exterior clipping on any part of a defined picture using any specified window. 7. compare the arithmetic operations performed in NLN algorithm to both the CohendSutherland and the Liang-Barsky line clipping algorithms for several different line orientations relative to a clipping window.

Prepared By N.Radha, AP, IT

You might also like