I tried the simplest sample of Pymeshlab but there is a Exception.
import pymeshlab
ms = pymeshlab.MeshSet()
ms.load_new_mesh('test.obj')
ms.generate_convex_hull()
ms.save_current_mesh('convex_hull.ply')
File "main.py", line 7, in <module>
ms.save_current_mesh('convex_hull.ply')
pymeshlab.pmeshlab.PyMeshLabException
The Exception is strange. It contains nothing.
My obj file is normal. My python version is 3.11.2
Can anyone tell me how to handle it?
I can confirm that this test case is working in my computer, so you can try this to debug your program.
before and after the call to
ms.generate_convex_hull(). This allows to check that the mesh has been correctly imported and built. Please, note that it is possible that your input mesh is somehow degenerated (for example, in your screenshot, every Z coordinate has the same value).