Constructor for Scene class.
A camera object to change the viewpoint.
The list of polytopes that are currently on screen.
Does the drawing with WEBGL.
Stores all of the polygons, lights, cameras, ... on screen.
Adds a face to the scene. The face is an array of simple polygons that together, form the face. This code figures out which of these faces need to be rendered, and transforms the points into 3D. (or at least will when it's fully functional).
Adds the ambient light and the directional light, fixed with respect to the scene.
Clears and disposes of everything in the scene, except for the lighting.
Generated using TypeDoc, the 1/31/2021 at 6:18:56 AM
Wrapper for a scene, an object that stores and shows a polytope.