First I would like to thank you for sharing this very useful and powerful remeshing software.
Now here is my problem:
As input, I have a 2D or 3D volume mesh with different subdomains, that I tag with what you call “refs”.
If I use mmgd2dlib or mmg3dlib, these refs are preserved correctly, and I can recover them when I do Get_triangle or Get_tetrahedron.
But when I do mmg3dls (mmg2dls does not seem to be implemented, am I right?), the refs seem to be ignored. New refs are generated for the new interface, which seems to be 2 inside and 3 outside.
How can I preserve old interfaces while adding a new one with mmg3dls?
If not possible easily, is there a workaround that I could use, for instance by fixing all boundaries between existing refs, and then updating the refs manually? If so, will the new ref always be 2?