Automatic Hole Repair for Quadrangle Surface Meshes

Hi everyone,

I’ve been working with a quadrangle surface mesh and encountered an issue where there are holes in the mesh, making it non-manifold. I’ve been trying to clean up these holes to ensure the mesh integrity, and while I initially hoped to find an automated solution, I ended up manually identifying the node numbers from the mesh viewer and typing out the lines to


recreate the missing quadrangles. Below are images showing the process and the results.

For a mesh composed of quadrangles or triangles, is there an existing repair option or feature in Salome that can automatically fill such gaps? I imagine such a feature would need methods tailored to different mesh types—triangular, quadrangular, hybrid, or polymesh. It seems like a general-purpose hole-filling tool could be immensely useful for cleaning up non-manifold meshes quickly and efficiently.

Does anyone know if such a feature exists in the current version of the platform, or if there are plans to include it in a future update? If not, are there any workflows, scripts, or plugins that can help automate this process for different mesh types?

Looking forward to hearing your thoughts and suggestions!

Thanks!

you can identify the nodes that are on the borders then check if you do a loop over the edges that this nodes constructs and if they are 4 then create a quad from that (or if 3 a tri). for this kind of issue on the mesh it can be automated easily. if you have more than ‘one’ missing quad this can go complex quite easily as it might mean adding extra nodes to the mesh. but for the case you showed at least, yes it can be automated quite easily with python +some heuristics. that being said, i dont know all the salome tools so maybe there is already something there.