I am currently using trimesh to create multi view snapshots of geometries. Unfortunately, after a while of calling the scene.save_image method a couple of times issues occur: a random ZeroDivisionError and a random Process exit.
After around 446 iterations python crashes completely and it returns 'Process finished with exit code -1073740771 (0xC000041D)' Here the exit codes are different every time.
I do not see the memory/CPU/GPU statistics blowing up in the task manager.
Is there any reason why I cannot
I'm trying to do something like this:
mesh = trimesh.load_mesh(in_fname, process=False) scene_A = trimesh.Scene(mesh) scene_B = trimesh.Scene(mesh) scene_A.show() # play with the camera scene_B.set_camera(**scene_A.camera)
scence_A.camera was a dict and the parameters of
set_camera where matching the elements of this dict. This would work. My question is how can I get the parameters of the camera so that I can pass them to
set_camera. I've the feeling that
scene.camera misses some of the parameters required to properly set the camera using
i need a help please
Trimesh has a
invert method that inverts faces: https://trimsh.org/trimesh.base.html#trimesh.base.Trimesh.invert
I have a 3D shape loaded from an
.off file, and I have an image load as a
I want to add this image as a texture to the mesh but I can't figure out how to do it. I did the following manipulation, but when I show the mesh, the texture is not applied.
import trimesh from PIL import Image im = Image.open("image.png") m = trimesh.load("mesh.off", process=False) tex = trimesh.visual.TextureVisuals(image=im) m.visual.texture = tex m.show()
How can I do this?
Thank you in advance.
facetsproperty, but I don't know if that problem has a well defined solution, as the resulting planar surface may not be a single triangle so there may be multiple solutions as to how to merge them I guess.
hi there, I'm a complete noob to
trimesh but I really like this library from the first impression and usage.
As a newbie, I'm going to explain my problem in my own word, which probably can be better described with trimesh-idiom. Please feel free to point it out.
Given a mesh, I want to get the vertices coordinates from different views, e.g. the file above represents a "Fence" object, I want to have the vertices coordinates under the six views, respectively.
Is there a API in
trimesh for it?