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

Direct volume rendering using raycasting is a display technique and you cannot store its result in a surface mesh (.ply file). See more detailed discussion of this topic on the Slicer forum: