You need to install meshlab for that work.
To change the number of triangles in the final mesh, edit the value on line 21:
<Param type="RichInt" value="2000" name="TargetFaceNum"/>
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 scene.set_camera
from scene.camera
?
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)
If 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 set_camera