Introducing 

Prezi AI.

Your new presentation assistant.

Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.

Loading…
Transcript

Example In Progress See Whiteboard

Cohen Sutherland line clipping algorithm

Clipping

What

Clipping, in the context of computer graphics, is a method to selectively enable or disable rendering operations within a defined region of interest.

WHY

Clip regions are commonly specified to improve render performance. A well-chosen clip allows the render to save time and energy by skipping calculations related to pixels that the user cannot see.

Different types of Clipping

  • Line Clipping
  • Polygon Clipping

Cohen Sutherland line clipping algorithm

Cohen Sutherland

The Cohen-Sutherland line clipping algorithm quickly detects and dispenses with two common and trivial cases. To clip a line, we need to consider only its endpoints. If both endpoints of a line lie inside the window, the entire line lies inside the window. It is trivially accepted and needs no clipping. On the other hand, if both endpoints of a line lie entirely to one side of the window, the line must lie entirely outside of the window. It is trivially rejected and needs to be neither clipped nor displayed.

Line Clipping

Common Line Clipping Algorithms

There are two common algorithms for line clipping:

  • Cohen–Sutherland
  • Liang–Barsky.

What is Line clipping

In computer graphics, line clipping is the process of removing lines or portions of lines outside an area of interest. Typically, any line or part thereof which is outside of the viewing area is removed.

Learn more about creating dynamic, engaging presentations with Prezi