lc = 0.05;

Point(1) = {0.1, 0, 0, lc};
Point(2) = {0.1, -0.2, 0, lc};
Point(3) = {0.2, -0.2, 0, lc};
Point(4) = {0.2, 0, 0, lc};
Line(1) = {2, 3};
Line(2) = {3, 4};
Line(3) = {4, 1};
Line(4) = {1, 2};
Line Loop(5) = {4, 1, 2, 3};
Plane Surface(6) = {5};
a[] = Extrude {{0, 1, 0}, {0, 0, 0}, 2*Pi/3} { Surface{6}; };
b[] = Extrude {{0, 1, 0}, {0, 0, 0}, 2*Pi/3} { Surface{a[0]}; };
c[] = Extrude {{0, 1, 0}, {0, 0, 0}, 2*Pi/3} { Surface{b[0]}; };

Point(39) = {-0.4, -0.4, -0.4, lc};
Point(40) = {0.4, -0.4, -0.4, lc};
Point(41) = {0.4, 0.2, -0.4, lc};
Point(42) = {-0.4, 0.2, -0.4, lc};
Line(72) = {39, 40};
Line(73) = {40, 41};
Line(74) = {41, 42};
Line(75) = {42, 39};
Line Loop(76) = {74, 75, 72, 73};
Plane Surface(77) = {76};
d[] = Extrude {0, 0, 0.8} { Surface{77}; };

e[] = CombinedBoundary{ Volume{a[1],b[1],c[1]}; };
f[] = CombinedBoundary{ Volume{d[1]}; };

Delete{ Volume{d[1]}; }
sl = newsl; Surface Loop(sl) = {e[],f[]};
v = newv; Volume(v) = sl;

Physical Volume(1) = {a[1],b[1],c[1]};
Physical Volume(2) = {v};
Physical Surface(3) = f[];
