Watertight check with Trimesh
frankshen07 opened this issue · 5 comments
Hi there,
Thank you for the great work! I'm using it for my research and I load the processed mesh with trimesh package (in python). However, trimesh shows that the mesh is not watertight (I was checking the results from demo). According to their documentation, 'is_watertight' function checks if a mesh is watertight by making sure every edge is included in two faces. Do you have any insight why this check would fail? Thanks in advance!
I actually don't expect it to happen. Would you send me your testing data?
Thank you for the prompt reply! I was testing with the demo models you provided. The 'broken faces' are in red. Please find the file in test.zip.
I just took a look at the testing model. I guess the issue is that trimesh automatically merge vertices which are very close to each other, and such merging breaks the watertightness. For example, I opened your mesh in meshlab and it reports identical vertex coordinate. If you did not see that from the direct output from my algorithm, then my guess is highly possible to be true.
Right, I looked into the trimesh loader and I found there was a flag for automatic post-processing on mesh. If I set that flag to false, the loaded mesh is watertight. Thank you very much for you help!
use trimesh.load('name.obj', process=False)