Geometric Primitives: Assignments


Part 1

a - Implement a new geometric primitive. For example, a cone. To test you implementation compute the approximate volume of the primitive using ray tracing.

Part 2

a - Write a program to parse and write a polygonal approximation of a sphere primitive. The program should read a file in S3D-SDL format an write the mesh in OFF format.

b - Write a program to convert a mesh in OFF format to S3D-SDL format.