obtain a valid 3D mesh from a very simple STL file
Hello, After following several tutorials, I have applied possible fixes without success. My original problem was to mesh an STL file with more than one solid. In the example, a sphere split in two surfaces, simply selecting several faces and divide the STL into two solids: north and south.
The quality of the triangulations is fine (or so I think!. I am running it with openFOAM and surfaceCheck passes).
I am trying to generate a tet mesh without any luck as I always get either:
- Error dihedral angle
Info : The dihedral angle between them is 0.000292266 degree.
Info : Hint: You may use Mesh.AngleToleranceFacetOverlap to decrease the dihedral angle tolerance 0.1 (degree)
Error : Invalid boundary mesh (overlapping facets) on surface 1 surface 1
- So I apply a tolerance, and I get error overlapping
Info : - Recovering boundary
Error : PLC Error: A segment and a facet intersect at point
Even if I use the sphere as a whole (without splitting into north and south), I don't seem to be able to mesh it.
I am not sure what I am doing wrong. Initially, my geometry was rather complicated but even for this case I am failing.
I attach the stls and the script that I am running.
Thanks and sorry if this is straight-forward. I have quite a long time looking at this with no success.
PS: I need things in patches (solids) because I am later applying boundary conditions to each patch. globe.stl