Mmg3d surface tag

Hi,

With mmg3d I noticed the tetra element tags seems to be ok but the triangle element tags are differents from the input to the output mesh file, is that normal ?

Best regards.

Hi,
It doesn’t seem to be normal: Mmg3d must preserve the tags of triangles.
Do you have a minimal example of the error that you can share, please?
Best Regards,
Algiane

Yes of course,

Here a very minimal example, i use mmg3d only with the optim flag. The input mesh contains 3 (tags 1, 2 and 3) surfaces and the output mesh contains 4 (1 to 4) surfaces…with an additional strange one.

Best regards.

temp.mesh (140.2 KB)

Thank you for the test case,

It seems that the input mesh contains 3 surfaces with tags 1, 3 and 4. Am I right?

Regarding the additionnal surface, as the triangles at the interface of the tetrahedra of tags 1 and 2 are not provided, mmg3d creates these triangles (we need it to analyse the surface topology, among other things).
Arbitrarely, when we create a missing interface, we choose to impose the tag of the volume with the highest value on the triangles so you end up with a new surface of tag 2.

Best Regards,
Algiane