This section is a brief overview of the algorithm used in the applet.
Explicit polygon lists which consists of a vertex list and a face list define a polyhedron. The data in the vertex list is supposed to be specified in world coordinate system. In this project, all faces of the polyhedron are supposed to be triangles, which means all the entries in the face list should specify exactly 3 vertices.
|
Fig.1 View coordinate |
|
|
Fig.2 Screen coordinate |
Only the diffuse component in the Phong reflection model is taken into account in this program. The light direction is fixed at