1.

An outcode can have ____ bits for two-dimensional clipping and ____ bits for three-dimensional clipping.(a) 4,6(b) 6,8(c) 2,4(d) 1,3This question was addressed to me in an international level competition.I want to ask this question from Cohen-Sutherland Line Clipping topic in chapter 2D Transformation and Viewing of Computer Graphics

Answer»

The correct ANSWER is (a) 4,6

To elaborate: The outcode will have 4 bits for two-dimensional CLIPPING, or 6 bits in the three-dimensional case. The first BIT is set to 1 if the point is above the VIEWPORT. The bits in the 2D outcode represent: top, bottom, right, left.



Discussion

No Comment Found

Related InterviewSolutions