Unable to rotate mesh when 2D recombination is used
Gmsh gives the following error when I rotate a 2D mesh whose elements have been recombined :
Error : Degenerated hexahedron in extrusion of volume 1
geo file is :
lc=0.05;
Point(1) = {0, 0, 0, lc};
Point(2) = {0, 1, 0, lc};
Point(3) = {1, 0, 0, lc};
Point(4) = {1, 1, 0, lc};
Line(1) = {1,3};
Line(2) = {3,4};
Line(3) = {4,2};
Line(4) = {2,1};
Line Loop(5) = {4, 1, 2, 3};
Plane Surface(6) = {5};
Recombine Surface{6};
Extrude { { 0,1,0 }, { 0,0,0 }, Pi/120 } { Surface{6}; Layers{ {1}, {1} }; Recombine; }
log is :
Info : Reading 'bug.geo'... Info : Done reading 'bug.geo' Info : Done Info : Meshing 1D... Info : Meshing curve 1 (Line) Info : Meshing curve 2 (Line) Info : Meshing curve 3 (Line) Info : Meshing curve 4 (Line) Info : Meshing curve 9 (extruded) Info : Meshing curve 10 (extruded) Info : Meshing curve 11 (extruded) Info : Meshing curve 14 (extruded) Info : Meshing curve 18 (extruded) Info : Done meshing 1D (0.004 s) Info : Meshing 2D... Info : Meshing surface 23 (extruded) Info : Meshing surface 15 (extruded) Info : Meshing surface 19 (extruded) Info : Meshing surface 22 (extruded) Info : Meshing surface 6 (Plane, Delaunay) Info : Blossom: 1541 internal 80 closed Info : BEFORE OPTIMIZATION : 527 quads 0 invalid quads 0 quads with Q < 0.1 Avg Q = 6.03117E-01 Min 1.11679E-01 Info : IN OPTIMIZATION : 510 quads 0 invalid quads 0 quads with Q < 0.1 Avg Q = 7.55138E-01 Min 4.98444E-01 Info : Blossom recombination algorithm completed (0.048003 s) Info : AFTER OPTIMIZATION : 510 quads 0 invalid quads 0 quads with Q < 0.1 Avg Q = 7.67522E-01 Min 5.32370E-01 Info : Meshing surface 23 (extruded) Info : Done meshing 2D (0.093595 s) Info : Meshing 3D... Info : Meshing volume 1 (extruded) Error : Degenerated hexahedron in extrusion of volume 1 Error : Degenerated hexahedron in extrusion of volume 1 Info : Done meshing 3D (0.004001 s) Info : 1081 vertices 1738 elements Error : ------------------------------ Error : Mesh generation error summary Error : 0 warnings Error : 2 errors Error : Check the full log for details Error : ------------------------------