Homework 5
- Problem handout from class (pdf).
- Sample text file for area computing. Please make your function interface look like "function [area] = get_area(filename)" where area is the returned signed area and filename is the string of the text file name.
- Two STL files (ASCII) for volume computing (STL1, STL2). Please make your function interface look like "function [vol] = get_vol(filename)" where vol is the returned signed volume and filename is the string of the STL file name.
- A simple STL file (cube.stl) for you to debug your volume computing codes.
- For the 2D formula for area computing, a formal proof is required. For the 3D formula for volume computing, a formal proof is not required.
- A brief introduction to STL file format. A STL file reader written in Matlab that you can use in your codes (you only need the "rndread" function)