Geometric Primitives: Assignments


Required

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

2 - Write a program to parse and write a sphere description.

3 - Implement a new primitive operation: "draw_o_prim", to draw an orthogonal projection of the primitive using the gplib.

4 - Implement a new geometric primitive. For example, a cone.

5 - Write a program to plot an orthogonal projection of a primitive.

6 - Write a program to test if a point is contained inside a primitive.

7 - Write a program to compute the approximate volume of a primitive, using ray casting.

8 - Write a program to parse and write a polygonal mesh description.

9 - Write a program to plot an orthogonal projection of a polygonal mesh.


Optional

10 - Implement a mesh description using point-polygon list.


Challenge

11 - Write a program create, edit the parameters and transform the geometry of primitives.

12 - Write a program create, edit the parameters and transform the geometry of polygonal meshes.