Problem with getElements API
Hi Christophe,
I'm using gmsh 4.8.4 and I have found little bug. If I create a surface (1) with a hole smaller than the mesh size and a surface (2) as large as the hole itself, gmsh works well and generate the mesh correctly (with the 2 tringular face or the recombine quad face). But, calling "getElements" for the first surface, it returns all the elements plus the faces of the hole for both cases (tri and quad). This bug is only for size bigger than the hole/surface. if the size is smaller, the api works well.
An example is easy to create. A rectangular surface with a hole and a second surface large as the hole.
Point(5) = {400, 400, 0}; Point(6) = {600, 400, 0}; Point(7) = {600, 600, 0}; Point(8) = {400, 600, 0}; Point(9) = {0, 0, 0}; Point(10) = {1000, 0, 0}; Point(11) = {0, 1000, 0}; Point(12) = {1000, 1000, 0};
Line(5) = {5, 6}; Line(6) = {6, 7}; Line(7) = {7, 8}; Line(8) = {8, 5}; Line(9) = {9, 10}; Line(10) = {11, 9}; Line(11) = {10, 12}; Line(12) = {12, 11};
Curve Loop(1) = {9, 11, 12, 10, 5, 6, 7, 8}; Plane Surface(1) = {1};
Curve Loop(2) = {5, 6, 7, 8}; Plane Surface(2) = {2};
Physical Surface(0) = {1}; Physical Surface(1) = {2};
Thanks a lot
Gabriele