vedo icon indicating copy to clipboard operation
vedo copied to clipboard

Colored PLY file gets seeming random colors applied when using k3d backend.

Open odinsbane opened this issue 2 years ago • 1 comments

When I display this .ply file using the vtk interface it works fine, ie solid colored meshes. When I use the k3d backend I get multi-colored meshes.

image

here is the notebook code.

from vedo import Mesh, Plotter, Volume, settings

settings.default_backend = 'k3d'

msh = Mesh("debug.ply").subdivide()
plt = Plotter(bg='black')
plt.show(msh)

Here is the mesh, I renamed the extension because github wouldn't let me upload a .ply file.

debug.txt

Some additional details. msh.print() shows the correct coloring.

odinsbane avatar Mar 24 '23 08:03 odinsbane

After spending some time on it I could only fix it partially (there are still some cases in which this may not work satisfactorily..)

Screenshot from 2023-03-24 20-26-58

marcomusy avatar Mar 24 '23 19:03 marcomusy