ply_path = export_to_ply(images[0], "3d_cake.ply")
print(f"Saved to folder: {ply_path}")
```  
Then you can convert the `ply` file to a `glb` file with the trimesh library:  
```py
import trimesh

mesh = trimesh.load("3d_cake.ply")
mesh_export = mesh.export("3d_cake.glb", file_type="glb")
```  
By default, the mesh output is focused from the bottom viewpoint but you can change the default viewpoint by applying a rotation transform:  
```py
import trimesh
import numpy as np