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
I'm trying to apply a texture to a pyvista tube object. I have the texture data as a numpy RGB array and the tube saved as a vtk file. This post is motivated from a suggestion by @banesullivan in this issue.
I found something that could be helpful here for a sphere and something on the website for a plane, but could not apply this to a tube.
The example data is the following:
-A pyvista polydata object that contains the borehole trajectory
PolyData (0x7f1ee29f3a60)
N Cells: 159316
N Points: 79700
X Bounds: -2.148e+02, -2.144e+01
Y Bounds: -1.590e+02, 2.125e+01
Z Bounds: 1.177e+03, 1.487e+03
N Arrays: 4
Two numpy arrays, one with the RGB values of the image log (shape (52871, 180, 3)) and one with the depth values that correspond to each row of the RGB image (shape (52871,)).
I appreciate the help!
note that the image data is scaled down ~500 times, but if the approach works I can try it with an upscaled version (which is too large to upload here)
I'm trying to apply a texture to a pyvista tube object. I have the texture data as a numpy RGB array and the tube saved as a vtk file. This post is motivated from a suggestion by @banesullivan in this issue.
I found something that could be helpful here for a sphere and something on the website for a plane, but could not apply this to a tube.
The example data is the following:
-A pyvista polydata object that contains the borehole trajectory
Two numpy arrays, one with the RGB values of the image log (shape (52871, 180, 3)) and one with the depth values that correspond to each row of the RGB image (shape (52871,)).
I appreciate the help!
note that the image data is scaled down ~500 times, but if the approach works I can try it with an upscaled version (which is too large to upload here)
example_data.zip
The text was updated successfully, but these errors were encountered: