MmgTools / mmg

open source software for bidimensional and tridimensional remeshing
http://www.mmgtools.org
Other
360 stars 117 forks source link

Triangle/Tetgen output do not provide internal Edges/Faces #100

Closed pjacquet88 closed 2 years ago

pjacquet88 commented 3 years ago

For the use of HDG (Hybridizable Discontinuous Galerkin) in Hou10ni software, we may provide internal edges (in 2D) or faces (in 3D). However triangle/tetgen outputs from MMG do not provide this internal information.

Is it possible to export this information under the triangle/tetgen format in the .edge/.face files ?

Algiane commented 3 years ago

Hello,

I will add the list of the internal edges at Triangle format. These edges will be saved with the reference 0.

Just note that you will loose the possibility to differentiate internal edges from an internal boundary that shares two domains of same references (opnbdy mode) if this boundary has the reference 0.

Algiane commented 3 years ago

Hi @pjacquet88,

You can use the feature/new-Triangle-output to have Mmg outputs more consistent with the native Triangle ones:

Just note that I will not adapt the 3D output because the only possibility is to append the internal edges/faces to the .edge and .face files and I prefer keeping the default Tetgen file format.

It is not tested so I let you tell me if you have issue.

Regards, Algiane