0
1.4kviews
Perform clipping on the segments AB, CD and EF using Cohen Sutherland algorithm.

A Rectangular clipping window has lower left corner is at (1,2) and the upper right corner at (9,8). The co-ordinates of the points A,B,C,D,E and F are: (11,6), (11,10), (6,6), (8,9), (2,3) and (8,4) respectively.

Mumbai University > Mechanical Engineering > Sem 7 > CAD CAM CAE

Marks: 10 Marks

Year: Dec 2016

1 Answer
0
2views

enter image description here

Logical AND FOR AB

(0010) AND (1010)0=(0010)

Not zero

No clipping

Line seg EF both end points have bit code (0000)

Inside clipping window

Logical AND FOR CD

(0000) AND (1000) = (0000)

Line need clipping

equation of slope of line CD

Y2Y1X2X1=9686=1.5

Calculation of 'D' for …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.