Writes the binary variant of the STL format: an 80 byte header, a 4 byte face count, and then 50 bytes per face (3 float32 values for the face normal, 9 float32 values for the 3 vertex coordinates, and a zero uint16 attribute byte count). All values are little endian, as the format requires. Note that the header must not start with the string 'solid', which is how readers tell the ASCII and the binary variant apart.
write.stl.binary(con, vertex_coords, faces, face_normals)NULL, invisibly. The data are written to con.
a connection opened in binary write mode, the file is written as text through it.
n x 3 matrix of doubles, the vertex coordinates.
n x 3 matrix of integers, the vertex indices of the triangles.
n x 3 matrix of doubles, the normals of the faces, see
mesh.face.normals.