s = 0.2;
dz1=1;
dz2=4;
a1=1;
a2=3;
a3=4;

Point(0) = {0, 0, 0, s};
Point(1) = {a1, 0, 0, s};
Point(2) = {0, a1, 0, s};
Point(3) = {-a1, 0, 0, s};
Point(4) = {0, -a1, 0, s};
Point(10) = {0, 0, dz1, s};
Point(11) = {a2, 0, dz1, s};
Point(12) = {0, a2, dz1, s};
Point(13) = {-a2, 0, dz1, s};
Point(14) = {0, -a2, dz1, s};
Point(20) = {0, 0, dz2, s};
Point(21) = {a3, 0, dz2, s};
Point(22) = {0, a3, dz2, s};
Point(23) = {-a3, 0, dz2, s};
Point(24) = {0, -a3, dz2, s};
Spline(1) = {1, 11, 21};
Spline(2) = {2, 12, 22};
Spline(3) = {3, 13, 23};
Spline(4) = {4, 14, 24};
Circle(5) = {1, 0, 2};
Circle(6) = {2, 0, 3};
Circle(7) = {3, 0, 4};
Circle(8) = {4, 0, 1};
Circle(9) = {11, 10, 12};
Circle(10) = {12, 10, 13};
Circle(11) = {13, 10, 14};
Circle(12) = {14, 10, 11};
Circle(13) = {21, 20, 22};
Circle(14) = {22, 20, 23};
Circle(15) = {23, 20, 24};
Circle(16) = {24, 20, 21};
Line Loop(18) = {4, -15, -3, 7};
Ruled Surface(18) = {18};
Line Loop(20) = {3, -14, -2, 6};
Ruled Surface(20) = {20};
Line Loop(22) = {2, -13, -1, 5};
Ruled Surface(22) = {22};
Line Loop(24) = {1, -16, -4, 8};
Ruled Surface(24) = {24};
Line Loop(26) = {15, 16, 13, 14};
Plane Surface(26) = {26};
Line Loop(28) = {7, 8, 5, 6};
Plane Surface(28) = {28};
Surface Loop(30) = {18, 20, 22, 24, 26, 28};
Volume(30) = {30};
