CutMesh plugin only performing splitting
Hello,
I'm using the CutMesh plugin from the C++ API in order to cut a surface mesh in half. I'm defining the cut position using a level set. When I generate a new GModel with CutMesh only the split option seems to be working correctly:
If I instead try to actually cut the mesh (gmsh::plugin::setNumber("CutMesh", "Split", 0);) I end up with a gap in between the two regions. The same exact output is obtained if I also set the SaveTri option (gmsh::plugin::setNumber("CutMesh", "SaveTri", 1);) which should build a fully triangular mesh also in the cut area. This is the output:
I attach also a picture of the level set for reference:
Any idea on what is going on? Thanks for your help and the amazing code!