Open danafd opened 10 months ago
hi, what happens if you reset it outside of the constructor:
nkx = Mesh("nkx.ply")
# nkx.pointdata.remove("RGB") # also try this
nkx.color("green5").alpha(0.5)
nkx
nkx.pointdata.remove("RGB")
did not work, but It worked when I did
nkx.pointdata.remove("Normals")
I don't understand why though...
There might be something wrong with the normals (?) in the original mesh. This seems to work for me:
import vedo
from vedo.applications import FreeHandCutPlotter
msh = vedo.Volume(vedo.dataurl+'embryo.tif').isosurface().color('gold', 0.25) # Mesh
plt = FreeHandCutPlotter(msh).add_hover_legend()
plt.start(axes=1, bg2='lightblue')
plt.mesh.write("test.ply")
plt.close()
m = Mesh("test.ply").color('pink')
show(m).close()
I've saved meshes from free hand-cutting volumes as
.ply
objects. When I open the.ply
file as aMesh
, I am unable to define the color of the mesh. Any idea how to fix this? I tried .linecolor() which works, but I lose the needed translucency of my mesh. Any help is appreciated.