I'm trying to write a STL file loader but I think that I'm hitting the limit of polygons that can be added to a mesh as a limb. The STL file format is used within the Rapid Prototyping Industry and describes and object by a triangle mesh. The format for Binary STL files couldn't be easier.
80 byte Header
4 Byte Unsigned Long Integer Number of facets in file
4 Byte Floating Point for i normal
4 Byte Floating Point for j normal
4 Byte Floating Point for k normal
4 Byte Floating Point for x for vertex 1
4 Byte Floating Point for y for vertex 1
4 Byte Floating Point for z for vertex 1
4 Byte Floating Point for x for vertex 2
4 Byte Floating Point for y for vertex 2
4 Byte Floating Point for z for vertex 2
4 Byte Floating Point for x for vertex 3
4 Byte Floating Point for y for vertex 3
4 Byte Floating Point for z for vertex 3
2 Byte filler
The attached code (if I've correctly attached it) shows my loader if you want to have a go yourself then substitute the open to Read 1, "torus.stl" with any STL file you can find
The problem is that STL files can define 100's of thousands of triangles so I would like so simple way of making an object from loads of Triangles.