Support export of PLY with external texture

Hello,

I am using vtkPLYReader + vtkPLYWriter to import/export various PLY meshes in my project (python VTK 9.5.2).

I have a problem with some PLY file formats that use external texture : the vtkPLYWriter doesn’t write the external texture file name in the PLY file.

For PLY with external texture, a line needs to be present in the header to be able to read the mesh with its texture:

comment TextureFile <textureFilename>

Is it possible to add an option in vtkPLYWriter to allow external texture handling?

Thanks

Out of curiosity, which software is producing external textures with PLY files?

Seems possible - would you be willing to contribute a merge request to VTK?

I’m dealing with intraoral scanners that produce 3D meshes of the upper and lower jaw.

I would be happy to contribute!
I’ll try to free up some time to do it in a few days.