-
Notifications
You must be signed in to change notification settings - Fork 4
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
Merging meshes resulting in gaps #181
Comments
Hi and welcome! Thanks for posting your first issue in the PyVista project! Someone from @pyvista/developers will chime in before too long. If your question is support related, it may be automatically transferred to https://github.com/pyvista/pyvista-support |
I am using the boolean addition filter to merge the individual meshes |
Can you share these meshes for us to try? |
Yep, there is a total of 8 meshes. |
This will get you a little closer. I'm afraid that the meshes are really far apart and it won't be possible to merge them all without corrupting the mesh as increasing import pyvista as pv
block = pv.MultiBlock()
[block.append(pv.read('Component_%d.stl' % i)) for i in range(1, 9)]
combined = block.combine(True).extract_surface()
merged = combined.clean(tolerance=0.6)
merged.plot(show_edges=True, lighting=True, background='w') |
Thanks a lot for the suggestion. Just as a side note, I have a mesh like this: I've tried using the clip_box method but I can't figure out a way to use it to systematically break down the geometry and adjust the number of components that I want split into. |
This might be a good example for pyvista/pyvista#797. For the time being, I'd use several clip planes spaced at regular intervals along the XZ and YZ planes. Use |
When I merge multiple triangulated meshes together, the resulting geometry has small gaps between its components. It seems like the gaps occur at the merging points.

How can I get rid of those gaps without distorting the triangulations? Thanks.
The text was updated successfully, but these errors were encountered: