wildmeshing / fTetWild

Fast Tetrahedral Meshing in the Wild
https://yixin-hu.github.io/ftetwild.pdf
Mozilla Public License 2.0
425 stars 83 forks source link

mesh sizing function #68

Open gbettega opened 10 months ago

gbettega commented 10 months ago

Hello thanks again for making fTetWild available. I have a question abuot the mesh sizing function, which as we know from the documentation, and from the examples, should be defined through a background mesh in .msh format. Let consider the solid in Fig. 1, and suppose that you would like to apply a sizing on the triangles laying on the two faces F1 and F2: the two sizing values f1 and f2 could in general be different.

image Fig. 1.

Now consider the two following steps:

STEP 1: extract F1 from the solid and enclose it in a bounding box; then generate a very simple, cartesian mesh of the bounding box. The corresponding .msh mesh file used for sizing will contain at each node the value f1. See Fig. 2

image Fig. 2

STEP2: the same for F2. See Fig. 3

image Fig. 3

STEP 3: "merge" the two .msh grids into one, with the "overlapping" result in Fig. 4: the union of the two grids is obvioulsy not well defined as single finite element mesh

image Fig. 4

Now the question; will this work? Thank you and regards Giovanni