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?
Trimesh offers Boolean operations for meshes using either Blender or SCAD as the computation engine. I'm finding that the results of the Boolean operations are a great deal faster on the Blender engine compared to SCAD. The results of Blender's engine are yielding inconsistent results (SCAD is taking way too long, so I'm not sure if it would result in similar issues). I've found that Blender's Python API allows a great deal of additional customization within their Boolean engine that may address the inconsistencies (https://docs.blender.org/api/current/bpy.types.BooleanModifier.html). Are there any plans for the additional arguments that Blender accepts to be added to Trimesh or should I just use bpy for this additional functionality?
I'm no expert on these sorts of things, so maybe you all might have some advice?
Broadly, I have two meshes that I would like to intersect. The result I am getting is a strange interpretation of an intersection. Small perturbations to my file's position in space make it such that it works some times, but not always. Any recommendations are welcome. Thanks.