Clipping: Assigments


Required

1 - Get the library libclip.a . Save the file clip.tgz , decompress it with gunzip and use tar to create the directory "./i3d/base/clip" . Compile and install the library.

2 - Write a program to clip a triangle against the hither plane using subdivision. The result should be visualized using orthogonal XZ projection.

3 - a program to clip a quadrilateral using the Sutherland-Hodgman algorithm. The result should be visualized in two ways: (i) using orthogonal XY projection, and a small window; (ii) using orthogonal XZ projection, and a small window.

In (2) and (3) draw the projection of the clipping planes.