LINE CLIPPING
PRESENT BY
G.ALAMELU,MCA.,
EMGYADAVA WOMEN’S COLLEGE
What is line
clipping
 The line which is present outside the window Is to be
discarded and the line that is present inside the window
has to be accepted .
Cases in line
clipping
Cohen-
Sutherland
Line clipping
 B4 B3 B2 B1
 Left-b1=> 1 other will be 0
 Right –b2=> 1 other will be 0
 Bottom-b3=>1 other will be 0
 Top-b4=>1 other will be 0
 0000 => 4 Bit region
 Bit codes Called as Region code
Cases in
Cohen
 0000 => Completely interior (P1 & P2) => make visible
 P1 & P2 Both non zero => find logical AND=> output as
non zero
 =>completely exterior=>make invisible
 One of the point is non zero,logical AND is non zero =>
find intersect point.
Find intersect
in Cohen
Liang-barsky
Line clipping
NicholL lee
nicholl Line
clipping
 By creating more regions around clip window the NLN
algorithm avoids multiple clipping on an individual line
segment.
 Out of 9 regions Only 3 regions would be Considered.
 If p1 lies in any one of the other 6 region , we can move
it to One of the three Regions using symmetry
transformation .
Line Clipping in Comeputer Graphics.pptx

Line Clipping in Comeputer Graphics.pptx

Editor's Notes

  • #2 The line which is present outside the wind