## What is Cohen Sutherland line clipping algorithm?

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 main steps in Cohen Sutherland line clipping?**

Pseudocode

- Step 1 : Assign a region code for two endpoints of given line.
- Step 2 : If both endpoints have a region code 0000 then given line is completely inside and we will keep this line.
- Step 3 : If step 2 fails, perform the logical AND operation for both region codes.
- Step 4 : Repeat step 1 for all lines.

### What are the advantages of Cohen Sutherland line clipping algorithm?

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 clipping explain the method of Cohen Sutherland line clipping in detail explain with example?**

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.

#### How Cohen Sutherland algorithm works difference between Cohen Sutherland and Sutherland-Hodgeman?

Cohen Sutherland and Sutherland Hodgman clipping algorithm: The ‘Cohen – Sutherland’ algorithm is a method used for ‘line clipping’ computer graphics. The Polygon Clipping algorithm from Sutherland-Hodgeman is operated by handling the polygon boundary opposite to each window corner or side.

**What is Sutherland Hodgman polygon clipping algorithm?**

The Sutherland–Hodgman algorithm is an algorithm used for clipping polygons. It works by extending each line of the convex clip polygon in turn and selecting only vertices from the subject polygon that are on the visible side.

## What are limitations of Cohen Sutherland line clipping algorithm?

Limitations of Cohen-Sutherland clipping algorithm

- Clipping window region can be rectangular in shape only and no other polygonal shaped window is allowed.
- Edges of rectangular shaped clipping window has to be parallel to the x-axis and y-axis.

**How Cohen-Sutherland algorithm works difference between Cohen-Sutherland and Sutherland hodgeman?**

### Why the Cohen-Sutherland line clipping algorithm in was much more calculations than the other line clipping algorithm?

Use Cohen – Sutherland Outcode Algorithm. Following are coordinates of clipping window : Lower Left Corner (20,20) and Upper Right Corner (200,200). A line has end coordinates as (5,50) and (75,90). The given line segment is ___________.

**Why the Cohen-Sutherland line clipping algorithm involves much more calculations than the other line clipping algorithms?**

The given line segment is ___________. Use Cohen – Sutherland Outcode Algorithm….

Q. | Why the Cohen-Sutherland Line-Clipping Algorithm involves much more calculations than the other line clipping algorithms? |
---|---|

D. | none of these |

Answer» b. need to perform trivial accept / reject test for every point on the line. |

#### What is the difference between Sutherland-Hodgeman and Weiler Atherton polygon clipping?

Weiler Atherton Polygon Clipping Algorithm is an algorithm made to allow clipping of even concave algorithms to be possible. Unlike Sutherland – Hodgman polygon clipping algorithm, this algorithm is able to clip concave polygons without leaving any residue behind.

**What are the advantages and limitations of Cohen Sutherland line clipping algorithm?**