
lc=.05;
Point(1) = {-.5, 0, 0, lc};
Point(2) = {0, 0, 0, lc};
Point(3) = {.5, 0, 0, lc};
Point(4) = {0, .5, 0, lc};
Line(1) = {1, 2};
Line(2) = {2, 2};
Line(3) = {2, 3};
Circle(4) = {1, 2, 4};
Circle(5) = {4, 2, 3};
Line Loop(6) = {4, 5, -3, -1};
Plane Surface(7) = {6};
e1[]=Extrude {{1, 0, 0}, {0, 0, 0}, Pi/2} {
  Surface{7};
};
e2[]=Extrude {{1, 0, 0}, {0, 0, 0}, Pi/2} {
  Surface{e1[0]};
};
e3[]=Extrude {{1, 0, 0}, {0, 0, 0}, Pi/2} {
  Surface{e2[0]};
};
e4[]=Extrude {{1, 0, 0}, {0, 0, 0}, Pi/2} {
  Surface{e3[0]};
};
Physical Volume(1) = {1, 4, 3, 2};


Point(14) = {-1, -1, -1, lc};
Point(15) = {-1, 1, -1, lc};
Point(16) = {1, -1, -1, lc};
Point(17) = {1, 1, -1, lc};
Line(61) = {15, 14};
Line(62) = {14, 16};
Line(63) = {16, 17};
Line(64) = {17, 15};
Line Loop(65) = {61, 62, 63, 64};
Plane Surface(66) = {65};
Extrude {0, 0, 2} {
  Surface{66};
}
Surface Loop(89) = {75, 66, 79, 83, 87, 88};
Surface Loop(90) = {57, 60, 32, 29, 18, 15, 43, 46};
Volume(91) = {89, 90};
Physical Volume(2) = {91};