Include "walledbox5.geo";
h = 2;

Mesh.RecombineAll = 0;

Transfinite Line {17, 8, 11, 12, 10, 21} = 10;
Transfinite Line {2, 18, 24, 26, 5, 30, 32, 20, 6, 4} = 10;
Transfinite Line {23, 25, 27, 29, 31, 22} = 30;
Transfinite Line {28, 19, 3} = 20;

Transfinite Surface {36, 34, 38, 40, 42, 44, 46, 48} = {} Alternated;

//Transfinite Surface{14} = {7, 1, -9, -4, 10, -6, -12, -3, 11, -5, -8, -2};
//Recombine Surface{14};
Recombine Surface{36, 34, 38, 40, 42, 44, 46, 48};
Extrude {0,0,h} {
//  Surface{14}; Layers{10}; Recombine;
  Surface{36, 34, 38, 40, 42, 44, 46, 48}; Layers{10}; Recombine;
}
//Physical Volume(15) = {15};
Physical Volume("volume") = {1, 2, 3, 4, 5, 6, 7, 8};
