All mock tests are FREE till 31 December — register to save your progress

Given below are two statements

Statement I: The maximum number of sides that a triangle might have when clipped to a rectangular viewport is 6.

Statement II: In 3D graphics, the perspective transformation is nonlinear in z. In light of the above statements, choose the correct answer from the options given below

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. Statement I is false but Statement II is true

Explanation

Clipping a triangle against a rectangle can cut it at every window corner, giving a polygon of up to 7 sides, so Statement I (6) is false. Perspective projection divides by z, which is non-linear in z, so Statement II is true.

More Programming Languages and Computer Graphics questions