-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Trimesh introduced non manifold edges and fills big hole when loading mesh #2326
Comments
Hey, it looks like what's happening here is that file has a ton of n-gon's that have to be triangulated, which trimesh does as a triangle fan:
It looks like three.js behaves the same as trimesh. Meshlab also appears to use the identical triangulation algorithm as trimesh. What viewer/generator are these meshes being created in? Do they load in meshlab or blender? |
I see. That makes sense then. Thank you for the quick reply! No Bug but a mesh issue in this case 😊 The mesh was generated using Blender, and the visualization is from Meshlab. I'm guessing this means that these use some way of detecting this issue and handling it differently? |
Oh yeah in the meshlab source:
We could call |
That is interesting. Thank you for looking into Meshlab's code. |
I have this mesh:
I load it with trimesh and save it again using the following code:
Trimesh then produces this mesh:
Note that the mesh has the big hole filled in and contains non manifold edges. This corresponds to the trimesh visualization with
mesh.show()
and thus must have something to do with the way that the mesh is loaded.Trimesh version:
trimesh-4.5.2
The text was updated successfully, but these errors were encountered: