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

Hello, Can I use vtkWindowToImageFilter to get a series of volume drawing rendered images and Transfer these pictures to the front-end to generate a 3D model?