Removing self-intersections from geometry created from a mesh
I am importing a deformed mesh (surface or volume) into gmsh and remesh the resulting geometry (created via createGeometry
). Since the meshes are used for contact simulations, these are small self-intersections in the mesh that i import. Gmsh notices these during the meshing and tries to fix them:
Info : :-( There are 3 intersections in the 1D mesh (curves 3 3 3)
Info : 8-| Splitting those edges and trying again)
However, this fails for my case. Now i was wondering if there is a way to resolve such overclosures prior to the meshing process in the API. My naive take would be to identify nodes that lie inside of any element, and then move them along a normal vector derived from the elements connected to the node. Before trying to solve this problem, i would like to ask if there is some functionality that i am not aware of to avoid redundant work.
Kind regards
Tim