lc_rot = 6;
lc_box = 50;

box_xy = 70;
box_z1 = -20;
box_z2 = 220;

Point(1) = {0, 0, 0, lc_rot};
Point(2) = {8, 0, 0, lc_rot};
Point(3) = {-8, 0, 0, lc_rot};
Point(4) = {0, 8, 0, lc_rot};
Point(5) = {0, -8, 0, lc_rot};
Point(11) = {0, 0, 200, lc_rot};
Point(12) = {8, 0, 200, lc_rot};
Point(13) = {-8, 0, 200, lc_rot};
Point(14) = {0, 8, 200, lc_rot};
Point(15) = {0, -8, 200, lc_rot};
Circle (1) = {2, 1, 4} Plane{0, 0, 1};
Circle (2) = {4, 1, 3} Plane{0, 0, 1};
Circle (3) = {3, 1, 5} Plane{0, 0, 1};
Circle (4) = {5, 1, 2} Plane{0, 0, 1};
Circle (11) = {12, 11, 14} Plane{0, 0, 1};
Circle (12) = {14, 11, 13} Plane{0, 0, 1};
Circle (13) = {13, 11, 15} Plane{0, 0, 1};
Circle (14) = {15, 11, 12} Plane{0, 0, 1};
Line (15) = {12, 2};
Line (16) = {14, 4};
Line (17) = {5, 15};
Line (18) = {13, 3};
Point(16) = {060,0,100,lc_rot};
Point(17) = {-060,0,100,lc_rot};
Point(18) = {0,60,100,lc_rot};
Point(19) = {0,-60,100,lc_rot};
Point(20) = {66,0,100,lc_rot};
Point(21) = {-66,0,100,lc_rot};
Point(22) = {0,66,100,lc_rot};
Point(23) = {0,-66,100,lc_rot};
Point(24) = {0,0,100,lc_rot};
Circle(19) = {16,24,18};
Circle(20) = {20,24,22};
Circle(21) = {18,24,17};
Circle(22) = {22,24,21};
Circle(23) = {17,24,19};
Circle(24) = {19,24,16};
Circle(25) = {21,24,23};
Circle(26) = {23,24,20};
Extrude Point {22, {0.0,0.0,25}};
Extrude Point {18, {0.0,0.0,25}};
Extrude Point {17, {0.0,0.0,25}};
Extrude Point {21, {0.0,0.0,25}};
Extrude Point {19, {0.0,0.0,25}};
Extrude Point {23, {0.0,0.0,25}};
Extrude Point {16, {0.0,0.0,25}};
Extrude Point {20, {0.0,0.0,25}};
Extrude Point {24, {0.0,0.0,25}};
Extrude Line {22, {0.0,0.0,25}};
Extrude Line {20, {0.0,0.0,25}};
Extrude Line {19, {0.0,0.0,25}};
Extrude Line {21, {0.0,0.0,25}};
Extrude Line {23, {0.0,0.0,25}};
Extrude Line {25, {0.0,0.0,25}};
Extrude Line {26, {0.0,0.0,25}};
Extrude Line {24, {0.0,0.0,25}};
Line Loop(68) = {36,56,60,40};
Line Loop(69) = {52,64,44,48};
Plane Surface(70) = {68,69};
Line Loop(71) = {22,25,26,20};
Line Loop(72) = {19,21,23,24};
Plane Surface(73) = {71,72};
Line Loop(74) = {12,13,14,11};
Plane Surface(75) = {74};
Line Loop(76) = {2,3,4,1};
Plane Surface(77) = {76};
Line Loop(78) = {2,-18,-12,16};
Plane Surface(79) = {78};
Delete {
  Surface{79};
}
Ruled Surface(79) = {78};
Line Loop(80) = {1,-16,-11,15};
Ruled Surface(81) = {80};
Line Loop(82) = {15,-4,17,14};
Ruled Surface(83) = {82};
Line Loop(84) = {17,-13,18,3};
Ruled Surface(85) = {84};
Surface Loop(86) = {75,79,-77,85,-83,81};
Volume(87) = {86};
Surface Loop(88) = {51,73,-39,-59,-63,-43,-70,47,67,55};
Volume(89) = {88};
Point(34) = {0.0,35,150,lc_rot};
Point(35) = {0.0,-35,150,lc_rot};
Point(36) = {35,0,150,lc_rot};
Point(37) = {-35,0,150,lc_rot};
Point(38) = {35,0,156,lc_rot};
Point(39) = {0,35,156,lc_rot};
Point(40) = {0,-35,156,lc_rot};
Point(41) = {-35,0,156,lc_rot};
Point(42) = {0,0,156,lc_rot};
Point(43) = {35,0,125,lc_rot};
Point(44) = {-35,0,125,lc_rot};
Point(45) = {0,035,125,lc_rot};
Point(46) = {0,-35,125,lc_rot};
Circle(90) = {26,45,34};
Circle(91) = {39,45,25};
Circle(92) = {35,46,29};
Circle(93) = {30,46,40};
Circle(94) = {27,44,37};
Circle(95) = {41,44,28};
Circle(96) = {31,43,36};
Circle(97) = {32,43,38};
Point(47) = {0,0,150,lc_rot};
Circle(98) = {37,47,34};
Circle(99) = {39,42,41};
Circle(100) = {39,42,38};
Circle(101) = {36,47,34};
Circle(102) = {36,47,35};
Circle(103) = {38,42,40};
Circle(104) = {40,42,41};
Circle(105) = {37,47,35};
Line Loop(106) = {105,92,-52,94};
Ruled Surface(107) = {106};
Line Loop(108) = {104,95,56,93};
Ruled Surface(109) = {108};
Line Loop(110) = {102,92,64,96};
Ruled Surface(111) = {110};
Line Loop(112) = {103,-93,60,97};
Ruled Surface(113) = {112};
Line Loop(114) = {100,-97,40,-91};
Ruled Surface(115) = {114};
Line Loop(116) = {96,101,-90,-44};
Ruled Surface(117) = {116};
Line Loop(118) = {94,98,-90,48};
Ruled Surface(119) = {118};
Line Loop(120) = {99,95,-36,-91};
Ruled Surface(121) = {120};
Line Loop(122) = {104,-99,100,103};
Plane Surface(123) = {122};
Line Loop(124) = {98,-101,102,-105};
Plane Surface(125) = {124};
Delete {
  Surface{125};
}
Delete {
  Surface{123};
}
Point(48) = {0.0,10,150,lc_rot};
Point(49) = {0.0,10,156,lc_rot};
Point(50) = {10,0,150,lc_rot};
Point(51) = {10,0,156,lc_rot};
Point(52) = {-10,0,150,lc_rot};
Point(53) = {-10,0,156,lc_rot};
Point(54) = {0,-10,150,lc_rot};
Point(55) = {0,-10,156,lc_rot};
Circle(125) = {51,42,49};
Circle(126) = {49,42,53};
Circle(127) = {53,42,55};
Circle(128) = {55,42,51};
Circle(129) = {50,47,48};
Circle(130) = {48,47,52};
Circle(131) = {52,47,54};
Circle(132) = {54,47,50};
Line(133) = {49,48};
Line(134) = {53,52};
Line(135) = {55,54};
Line(136) = {51,50};
Line Loop(137) = {126,127,128,125};
Plane Surface(138) = {122,137};
Line Loop(139) = {129,130,131,132};
Plane Surface(140) = {124,139};
Line Loop(141) = {133,130,-134,-126};
Ruled Surface(142) = {141};
Line Loop(143) = {131,-135,-127,134};
Ruled Surface(144) = {143};
Line Loop(145) = {128,136,-132,-135};
Ruled Surface(146) = {145};
Line Loop(147) = {125,133,-129,-136};
Ruled Surface(148) = {147};
Surface Loop(149) = {138,-109,121,70,-113,-115,119,-107,-140,-117,111,146,148,-142,-144};
Volume(150) = {149};
Physical Surface(151) = {77,75,81,83,85,79};
Physical Volume(152) = {89};

Point(62) = {-box_xy,-box_xy,box_z1,lc_box};
Point(63) = {box_xy,-box_xy,box_z1,lc_box};
Point(64) = {-box_xy,box_xy,box_z1,lc_box};
Point(65) = {box_xy,box_xy,box_z1,lc_box};
Point(66) = {box_xy,box_xy,box_z2,lc_box};
Point(67) = {box_xy,-box_xy,box_z2,lc_box};
Point(68) = {-box_xy,-box_xy,box_z2,lc_box};
Point(69) = {-box_xy,box_xy,box_z2,lc_box};

Line(153) = {65,64};
Line(154) = {62,63};
Line(155) = {63,65};
Line(156) = {64,62};
Line(157) = {66,67};
Line(158) = {67,68};
Line(159) = {68,69};
Line(160) = {69,66};
Line(161) = {66,65};
Line(162) = {64,69};
Line(163) = {68,62};
Line(164) = {67,63};
Line Loop(165) = {155,153,156,154};
Plane Surface(166) = {165};
Line Loop(167) = {161,153,162,160};
Plane Surface(168) = {167};
Line Loop(169) = {157,164,155,-161};
Plane Surface(170) = {169};
Line Loop(171) = {154,-164,158,163};
Plane Surface(172) = {171};
Line Loop(173) = {157,158,159,160};
Plane Surface(174) = {173};
Line Loop(175) = {162,-159,163,-156};
Plane Surface(176) = {175};
Surface Loop(177) = {174,-170,-172,166,-168,176};
Surface Loop(178) = {59,-73,39,-121,-138,109,113,63,43,115,-148,142,140,-119,107,-111,-67,-47,-51,-55,117,-146,144};
Volume(179) = {177,86,178};
Physical Volume(180) = {150};
Extrude Line {33, {-6,0.0,0}};
Extrude Line {29, {6,0.0,0}};
Extrude Line {28, {0,-6,0}};
Extrude Line {31, {0,6,0}};
Extrude Surface {188, {0,0,1}, {0.0,0.0,0.0}, Pi/6};
Extrude Surface {196, {0,0,1}, {0.0,0.0,0.0}, Pi/6};
Extrude Surface {184, {0,0,1}, {0.0,0.0,0.0}, Pi/6};
Extrude Surface {192, {0,0,1}, {0.0,0.0,0.0}, Pi/6};
Surface Loop(285) = {283,-192,271,275,279,284};
Volume(286) = {285};
Surface Loop(287) = {217,-188,205,209,213,218};
Volume(288) = {287};
Surface Loop(289) = {239,-196,227,231,235,240};
Volume(290) = {289};
Surface Loop(291) = {257,-184,249,253,262,261};
Volume(292) = {291};
Physical Volume(293) = {292,290,288,286};
