Due: Monday 4/8 10:00am
GitHub link: https://classroom.github.com/a/PR3QY3I8
For testing & submission purposes, please use the shape testing script from the previous assignment.
The Drawing:
- Create new functions to add a polygon to a matrix, and go through the matrix 3 points at a time to draw triangles.
- You should have a new triangle matrix that exists alongside the edge matrix. The edge matrix should be used for the shapes that are exclusively 2d (lines, circles, splines), and the triangle matrix for our 3d shapes.
- Anything aside from shape drawing that modifies/uses the edge matrix (apply, clear, display, save) should now modify/use the triangle matrix as well.
- Modify
add_box
,add_sphere
andadd_torus
to add triangles to the new triangle matrix instead of points. - Make sure the parser calls the
draw_polygons
functions when needed.