discrete_gaussian_curvature_measure(mesh, mesh.vertices, r)/sphere_ball_intersection(1, r)
sphere_ball_intersection(1,r)call is about... what exactly is this example showing? Can I use this to calculate curvature at every vertex for an arbitrary mesh? How would I know what value of r to use?
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.