in Computer Graphics recategorized by
8,370 views
2 votes
2 votes

Let R be the rectangular window against which the lines are to be clipped using 2D Sutherland-Cohen line clipping algorithm. The rectangular window has lower rectangular corner at (-5, 1) and upper right-hand corner at (3, 7). Consider the following three lines for clipping with the given end-point coordinates?

Line AB:A(-6,2) and B(-1,8)

Line CD: C(-1,5) and D(4,8)

Line EF: E(-2,3) and F(1,2)

Which of the following lines is/are candidate for clipping?

  1. AB
  2. DC
  3. EF
  4. AB and CD
in Computer Graphics recategorized by
8.4k views

1 Answer

4 votes
4 votes
Best answer

ans is D  (geometrical method simple and efficient)

 

since EF is completely inside window hence it is trivialy visible and dont need clipping

for  cohen sutherland algo (which is lengthy but  accurate  method ) refer https://www.cs.helsinki.fi/group/goa/viewing/leikkaus/lineClip.html

selected by
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true