COMPUTER SCIENCE AND ENGINEERING
COMPUTER GRAPHICS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
0000
|
|
1111
|
|
0110
|
|
1001
|
Detailed explanation-1: -Answer: a Explanation: In any co-ordinate system, the origin is the centre of the various axis and is represented as (0, 0). So in this case also the origin, or the centre of the window, will be represented as 0000.
Detailed explanation-2: -Answer: a Explanation: The sequence for reading the codes’ bits is LRBT (Left, Right, Bottom, Top). Since it is in the top-left corner of the window, hence its code will be 1001.
Detailed explanation-3: -Answer: (c) 0110 Explanation: The 4-bit code of the bottom-right region amongst the nine regions divided by the Cohen-Sutherland algorithm is 0110.
Detailed explanation-4: -For example, the outcode 1010 represents a point that is top-right of the viewport. Note that the outcodes for endpoints must be recalculated on each iteration after the clipping occurs. The Cohen–Sutherland algorithm can be used only on a rectangular clip window.
Detailed explanation-5: -Every region is assigned a four digit binary code, called region code that identifies a region. The central region, called the clip window region, is identified with the region code (0000). The region to the left is given a region code 0001.