# What is Sutherland Cohen algorithm explain its different steps?

## What is Sutherland Cohen algorithm explain its different steps?

The Cohenâ€“Sutherland algorithm is a computer-graphics algorithm used for line clipping. The algorithm divides a two-dimensional space into 9 regions and then efficiently determines the lines and portions of lines that are visible in the central region of interest (the viewport).

## What are the limitations of Cohen Sutherland algorithm?

What is the limitation of Cohen Sutherland algorithm? Cohen Sutherland algorithm works only for rectangular clip window which means if the area of interest has any other shape than a rectangle, it will not work.

**What are main steps in Cohen-Sutherland line clipping?**

Cohen sutherland line clipping

- Cohen-Sutherland Line Clipping –
- Introduction.
- Encode end points Bit 0 = point is left of window 2. Bit 1 = point is right of window 3. Bit 2 = point is below window 4. Bit 3 = point is above window REGION CODES.

**What is region code in Cohen-Sutherland?**

Cohen Sutherland uses region code to clip a portion of the line which is not present in the visible region. It divides a region into 9 columns based on (X_MAX,Y_MAX) and (X_MIN,Y_MIN). The central part is viewing region or window, all the lines which lie within this region are completely visible.

### What is the advantage of Cohen-Sutherland line clipping?

Advantage of Cohen Sutherland Line Clipping: It calculates end-points very quickly and rejects and accepts lines quickly. It can clip pictures much large than screen size.

### What is the significance of 4 bit region code is Cohen Sutherland algorithm?

Cohen-Sutherland Line Clippings: We will use 4-bits to divide the entire region. These 4 bits represent the Top, Bottom, Right, and Left of the region as shown in the following figure. Here, the TOP and LEFT bit is set to 1 because it is the TOP-LEFT corner.

**What is the significance of 4 bit region code in Cohen Sutherland algorithm?**