pyvista / pyvista-support

[moved] Please head over to the Discussions tab of the PyVista repository
https://github.com/pyvista/pyvista/discussions
59 stars 4 forks source link

How to open a .ply file with textures #457

Closed T-AbdelAlim closed 3 years ago

T-AbdelAlim commented 3 years ago

I am interested in using a .ply file with textures. However, if I pv.read(mesh.ply), I get the file with a default cmap instead of the textures. When I open the same mesh.ply file in MeshLab, it opens the file by default with the appropriate textures.

Is there a way to do this using pyvista?

Thanks in advance.

image image

akaszynski commented 3 years ago

Without seeing the file I can't be sure, but I think that you can enable RGBA plotting with by enabling rgba=True when plotting.

T-AbdelAlim commented 3 years ago

Thank you very much. I had quite an elaborate workaround, but this is much better.