Encoding of stl files for 3d models