0% found this document useful (0 votes)
56 views34 pages

Perform Clipping in Computer Graphics

This document discusses different types of clipping techniques used in computer graphics including point clipping, line clipping, and polygon clipping. It focuses on explaining the Cohen-Sutherland line clipping algorithm, which determines whether line segments are fully inside, fully outside, or intersect a clipping window and clips the line accordingly. It also briefly introduces the Sutherland-Hodgman polygon clipping algorithm, which clips polygons to a clipping window by removing the portions outside the window.

Uploaded by

bajagovindam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views34 pages

Perform Clipping in Computer Graphics

This document discusses different types of clipping techniques used in computer graphics including point clipping, line clipping, and polygon clipping. It focuses on explaining the Cohen-Sutherland line clipping algorithm, which determines whether line segments are fully inside, fully outside, or intersect a clipping window and clips the line accordingly. It also briefly introduces the Sutherland-Hodgman polygon clipping algorithm, which clips polygons to a clipping window by removing the portions outside the window.

Uploaded by

bajagovindam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 34

CLIPPING

Cutting off the picture outside of


window

clipping
Basically we have
Point clipping
Line clipping
Polygon clipping

Point Clipping
Determining whether a point is inside or outside of a window &
discarding the point if it is outside is called point clipping.

Line clipping

Line clipping

Line clipping

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm
3.a.If both the endpoints code value is 0000
then line segment is completely inside display
it.stop.

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm
6. Goto step 2.

Cohen Sutherland line clipping


algorithm
Clip the following line against a window

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Cohen Sutherland line clipping


algorithm

Sutherland hodgeman polygon clipping algorithm

Determining whether a polygon is lying inside or outside of window and removing the p

Sutherland hodgeman polygon clipping algorithm

Sutherland hodgeman polygon clipping algorithm

Sutherland hodgeman polygon clipping algorithm

Sutherland hodgeman polygon clipping algorithm

Sutherland hodgeman polygon clipping algorithm

Sutherland hodgeman polygon clipping algorithm

You might also like