Submitted by clampfferj on Mon, 04/02/2012 - 20:33
I had to process some CAD files for my rapid prototyping machine project so I came up with the following as a starting point. An STL files describe a set of triangular facets that form a mesh that approximates any three dimensional shape. I wrote this code to allow me to read a file and generate an array of facet data from the binary STL format.
We need a few helper classes.
An ordered triplet of 32 bit floats.