How to save the 3D medical image reconstructed by the volume drawing algorithm as a PLY file to the local computer

Yes, absolutely, this works. Fortunately, you don’t even need to implement this, because this is exactly what Trame does when you use it in remote rendering mode.