You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
Thanks for this nice package!
I am new to pyvista. I have a naive question. I already have a mesh and its texture image. Is there any way to get the texture value for each vertex?
I can plot the mesh with a predefined texture via pyvista plotter.
Lets say the mesh has N vertices, how can I get a Nx3 (rbg) value for each vertex?
Thanks!
obj_path = 'path_to_obj'
data = pv.read(obj_path)
texture_path = 'path_to_texture_jpg'
tex = pv.read_texture(texture_path)
p = pv.Plotter(window_size=[1920, 1280])
p.add_mesh(data,texture=tex)
p.show()
The text was updated successfully, but these errors were encountered:
hbgtjxzbbx
changed the title
Extract texture value for each vertex with a given mesh and its texture
Extract rgb value for each vertex with a given mesh and its texture image
Jun 16, 2021
Hello
Thanks for this nice package!
I am new to pyvista. I have a naive question. I already have a mesh and its texture image. Is there any way to get the texture value for each vertex?
I can plot the mesh with a predefined texture via pyvista plotter.
Lets say the mesh has N vertices, how can I get a Nx3 (rbg) value for each vertex?
Thanks!
The text was updated successfully, but these errors were encountered: