// picogkffi stl: Binary STL file writer for PicoGK meshes.

///|
/// Mesh::save_stl writes the mesh to a binary STL file.
/// Returns true on success, false on error.
pub fn Mesh::save_stl(self : Mesh, path : String) -> Bool {
  let n_verts = self.vertex_count()
  let n_tris = self.triangle_count()
  if n_verts == 0 || n_tris == 0 {
    return false
  }
  // Pack vertices as float32 array
  let vert_bytes = FixedArray::make(n_verts * 3 * 4, 0L.to_byte())
  for i in 0..