 lc = 0.10;

// geracao da base
 
 Point(1) = {-0.160,-0.0225,-0.040,lc};
 Point(2) = {-0.160,-0.0225,0.040,lc};
 Point(3) = {-0.160,0.0275,0.040,lc};
 Point(4) = {-0.160,0.0275,-0.040,lc};

 Line(1) = {1,2};
 Line(3) = {2,3}; 
 Line(5) = {3,4};
 Line(7) = {4,1};

 Line Loop(9) = {1,3,5,7};
 Plane Surface(10) = {9};
 Extrude Surface{10,{0.320,0.0,0}};

Transfinite Line {1} = 5 Using Progression 1.0;
Transfinite Line {3} = 5 Using Progression 1.0;
Transfinite Line {5} = 5 Using Progression 1.0;
Transfinite Line {7} = 5 Using Progression 1.0;
Transfinite Line {12} = 5 Using Progression 1.0;
Transfinite Line {13} = 5 Using Progression 1.0;
Transfinite Line {14} = 5 Using Progression 1.0;
Transfinite Line {15} = 5 Using Progression 1.0;
Transfinite Line {17,18,22,26} = 33 Using Progression 1.0;

Transfinite Surface{10} = {1,2,3,4};
Transfinite Surface{19} = {1,2,6,5};
Transfinite Surface{31} = {1,4,14,5};
Transfinite Surface{23} = {2,3,10,6};
Transfinite Surface{27} = {4,3,10,14};
Transfinite Surface{32} = {5,6,10,14};

Transfinite Volume{1} = {1,2,3,4,5,6,10,14};
Recombine Surface {10,19,31,23,27,32};

Physical Surface(33) = {10,19,31,23,27,32};
Physical Volume(2)={1};

// fim da base
// inicio das alças

Point(15) = {-0.144,0.0225,0.024,lc};
Point(16) = {-0.136,0.0225,0.024,lc};
Point(17) = {-0.136,0.0225,0.016,lc};
Point(18) = {-0.144,0.0225,0.016,lc};
Point(19) = {-0.144,0.0225,-0.016,lc};
Point(20) = {-0.136,0.0225,-0.016,lc};
Point(21) = {-0.136,0.0225,-0.024,lc};
Point(22) = {-0.144,0.0225,-0.024,lc};
Line(34) = {15,16};
Line(35) = {16,17};
Line(36) = {17,18};
Line(37) = {18,15};
Line(38) = {19,20};
Line(39) = {20,21};
Line(40) = {21,22};
Line(41) = {22,19};

Line Loop(42) = {34,35,36,37};
Plane Surface(43) = {42};
Line Loop(44) = {38,39,40,41};
Plane Surface(45) = {44};
Extrude Surface {43, {0.0,0.005,0}};
Extrude Surface {45, {0.0,0.005,0}};

// a face eh gerada a partir do interior da base

Line Loop(90) = {47,48,49,50};
Line Loop(91) = {69,70,71,72};
 
Transfinite Line {34,35,36,37,52,53,57,61,47,48,49,50} = 3 Using Progression 1.0;
Transfinite Line {38,39,40,41,74,75,79,83,69,70,71,72} = 3 Using Progression 1.0;

Transfinite Surface{67} = {23,32,28,24};
Transfinite Surface{43} = {15,18,17,16};
Transfinite Surface{54} = {16,15,23,24};
Transfinite Surface{58} = {16,17,28,24};
Transfinite Surface{62} = {18,17,28,32};
Transfinite Surface{66} = {15,18,32,23};

Transfinite Volume{2} = {15,16,17,18,23,24,28,32};
Recombine Surface {43,54,58,62,66,67};
Physical Surface(92) = {43,54,58,62,66,67};
Physical Volume(3)=2;

Transfinite Surface{45} = {19,20,21,22};
Transfinite Surface{80} = {21,20,34,38};
Transfinite Surface{76} = {20,19,33,34};
Transfinite Surface{84} = {22,21,38,42};
Transfinite Surface{88} = {19,22,42,33};
Transfinite Surface{89} = {33,34,38,42};

Transfinite Volume{3} = {19,20,21,22,33,34,38,42};
Recombine Surface {45,80,76,84,88,89};
Physical Volume(4)=3;

// fim da parte engastada
// inicio da alça livre
// primeiro trecho reto

Point(43) = {-0.144,0.0875,0.024,lc};
Point(44) = {-0.136,0.0875,0.024,lc};
Point(45) = {-0.136,0.0875,0.016,lc};
Point(46) = {-0.144,0.0875,0.016,lc};
Point(47) = {-0.144,0.0875,-0.016,lc};
Point(48) = {-0.136,0.0875,-0.016,lc};
Point(49) = {-0.136,0.0875,-0.024,lc};
Point(50) = {-0.144,0.0875,-0.024,lc};
Line(93) = {23,43};
Line(94) = {24,44};
Line(95) = {28,45};
Line(96) = {32,46};
Line(97) = {43,44};
Line(98) = {44,45};
Line(99) = {45,46};
Line(100) = {46,43};
Line(101) = {33,47};
Line(102) = {34,48};
Line(103) = {38,49};
Line(104) = {42,50};
Line(105) = {47,48};
Line(106) = {48,49};
Line(107) = {49,50};
Line(108) = {50,47};

Line Loop(109) = {47,94,-97,-93};
Plane Surface(110) = {109};
Line Loop(111) = {48,95,-98,-94};
Plane Surface(112) = {111};
Line Loop(113) = {49,96,-99,-95};
Plane Surface(114) = {113};
Line Loop(115) = {50,93,-100,-96};
Plane Surface(116) = {115};
Line Loop(117) = {97,98,99,100};
Plane Surface(118) = {117};
Line Loop(119) = {69,102,-105,-101};
Plane Surface(120) = {119};
Line Loop(121) = {70,103,-106,-102};
Plane Surface(122) = {121};
Line Loop(123) = {71,104,-107,-103};
Plane Surface(124) = {123};
Line Loop(125) = {72,101,-108,-104};
Plane Surface(126) = {125};
Line Loop(127) = {105,106,107,108};
Plane Surface(128) = {127};

Transfinite Line {93,94,95,96,97,98,99,100} = 3 Using Progression 1.0;
Transfinite Line {101,102,103,104,105,106,107,108} = 3 Using Progression 1.0;

Transfinite Surface{110} = {23,24,44,43};
Transfinite Surface{112} = {24,28,45,44};
Transfinite Surface{114} = {28,32,46,45};
Transfinite Surface{116} = {32,23,43,46};
Transfinite Surface{118} = {44,45,46,43};

Transfinite Surface{120} = {33,34,48,47};
Transfinite Surface{122} = {34,38,49,48};
Transfinite Surface{124} = {38,42,50,49};
Transfinite Surface{126} = {42,33,47,50};
Transfinite Surface{128} = {47,48,49,50};

Transfinite Volume{4} = {23,24,28,32,43,44,45,46};
Transfinite Volume{5} = {33,34,38,42,47,48,49,50};

Recombine Surface {110,112,114,116,118};
Physical Volume(5)=4;

Recombine Surface {120,122,124,126,128};
Physical Volume(6)=5;

// fim do primeiro trecho reto
// inicio da primeira curva

Extrude Surface {118, {0.040,0.0855,0.0}};
Extrude Surface {128, {0.040,0.0855,0.0}};

Transfinite Line {135,136,140,144,130,131,132,133} = 3 Using Progression 1.0;
Transfinite Line {157,158,162,166,152,153,154,155} = 3 Using Progression 1.0;

Transfinite Surface{137} = {43,44,52,51};
Transfinite Surface{141} = {44,45,56,52};
Transfinite Surface{145} = {45,46,60,56};
Transfinite Surface{149} = {46,43,51,60};
Transfinite Surface{150} = {52,56,60,51};

Transfinite Surface{159} = {47,48,62,61};
Transfinite Surface{163} = {48,49,66,62};
Transfinite Surface{167} = {49,50,70,66};
Transfinite Surface{171} = {50,47,61,70};
Transfinite Surface{172} = {62,66,70,61};

Recombine Surface {137,141,145,149,150};
Recombine Surface {159,163,167,171,172};

Transfinite Volume{7} = {43,44,45,46,51,52,56,60};
Transfinite Volume{8} = {47,48,49,50,61,62,66,70};

Physical Volume(8)=7;
Physical Volume(9)=8;

/////////////

Extrude Surface {150, {0.0,0.0625,0.0}};
Extrude Surface {172, {0.0,0.0625,0.0}};

Transfinite Line {179,180,184,188,174,175,176,177} = 3 Using Progression 1.0;
Transfinite Line {201,202,206,210,196,197,198,199} = 3 Using Progression 1.0;

Transfinite Surface{181} = {51,52,72,71};
Transfinite Surface{185} = {52,56,76,72};
Transfinite Surface{189} = {56,60,80,76};
Transfinite Surface{193} = {60,51,71,80};
Transfinite Surface{194} = {72,76,80,71};

Transfinite Surface{203} = {61,62,82,81};
Transfinite Surface{207} = {62,66,86,82};
Transfinite Surface{211} = {66,70,90,86};
Transfinite Surface{215} = {70,61,81,90};
Transfinite Surface{216} = {82,86,90,81};


Recombine Surface {181,185,189,193,194};
Recombine Surface {203,207,211,215,216};

Transfinite Volume{9} = {51,52,56,60,986,987,991,995};
Transfinite Volume{10} = {61,62,66,70,996,997,1001,1005};

Physical Volume(10)=9;
Physical Volume(11)=10;

///////////////

Extrude Surface {194, {0.0,0.0625,0.0}};
Extrude Surface {216, {0.0,0.0625,0.0}};

Transfinite Line {223,224,228,232,218,219,220,221} = 3 Using Progression 1.0;
Transfinite Line {245,246,250,254,240,241,242,243} = 3 Using Progression 1.0;

Transfinite Surface{225} = {71,72,92,91};
Transfinite Surface{229} = {72,76,96,92};
Transfinite Surface{233} = {76,80,100,96};
Transfinite Surface{237} = {80,71,91,100};
Transfinite Surface{238} = {92,96,100,91};

Transfinite Surface{247} = {81,82,102,101};
Transfinite Surface{251} = {82,86,106,102};
Transfinite Surface{255} = {86,90,110,106};
Transfinite Surface{259} = {90,81,101,110};
Transfinite Surface{260} = {102,106,110,101};

Recombine Surface {225,229,233,237,238};
Recombine Surface {247,251,255,259,260};

Transfinite Volume{11} = {71,72,76,80,91,92,96,100};
Transfinite Volume{12} = {81,82,86,90,101,102,106,110};

Physical Volume(12)=11;
Physical Volume(13)=12;

//////////////

Extrude Surface {238, {0.0,0.0625,0.0}};
Extrude Surface {260, {0.0,0.0625,0.0}};

Transfinite Line {267,268,272,276,262,263,264,265} = 3 Using Progression 1.0;
Transfinite Line {289,290,294,298,284,285,286,287} = 3 Using Progression 1.0;

Transfinite Surface{269} = {91,92,112,111};
Transfinite Surface{273} = {92,96,116,112};
Transfinite Surface{277} = {96,100,120,116};
Transfinite Surface{281} = {100,91,111,120};
Transfinite Surface{282} = {112,116,120,111};

Transfinite Surface{291} = {101,102,122,121};
Transfinite Surface{295} = {102,106,126,122};
Transfinite Surface{299} = {106,110,130,126};
Transfinite Surface{303} = {110,101,121,130};
Transfinite Surface{304} = {122,126,130,121};

Recombine Surface {269,273,277,281,282};
Recombine Surface {291,295,299,303,304};

Transfinite Volume{13} = {91,92,96,100,112,116,120,111};
Transfinite Volume{14} = {101,102,106,110,121,122,126,130};

Physical Volume(14)=13;
Physical Volume(15)=14;

////////////

Extrude Surface {282, {0.0,0.0625,0.0}};
Extrude Surface {304, {0.0,0.0625,0.0}};

Transfinite Line {311,312,316,320,306,307,308,309} = 3 Using Progression 1.0;
Transfinite Line {333,334,338,342,328,329,330,331} = 3 Using Progression 1.0;

Transfinite Surface{313} = {111,112,132,131};
Transfinite Surface{317} = {112,116,136,132};
Transfinite Surface{321} = {116,120,140,136};
Transfinite Surface{325} = {120,111,131,140};
Transfinite Surface{326} = {132,136,140,131};

Transfinite Surface{335} = {121,122,142,141};
Transfinite Surface{339} = {122,126,146,142};
Transfinite Surface{343} = {126,130,150,146};
Transfinite Surface{347} = {130,121,141,150};
Transfinite Surface{348} = {142,146,150,141};

Recombine Surface {313,317,321,325,326};
Recombine Surface {335,339,343,347,348};

Transfinite Volume{15} = {111,112,116,120,131,132,136,140};
Transfinite Volume{16} = {121,122,126,130,141,142,146,150};

Physical Volume(16)=15;
Physical Volume(17)=16;

////////////////////

Point(1170) = {0.0,0.423,0.020,lc};
Point(1171) = {0.0,0.423,-0.020,lc};

Extrude Surface {326,{0,0,0},{0,0,1},{0.0,0.423,0.020,lc},-Pi/4};
Extrude Surface {348,{0,0,0},{0,0,1},{0.0,0.423,0.020,lc},-Pi/4};

Transfinite Line {355,356,360,364,350,351,352,353} = 3 Using Progression 1.0;
Transfinite Line {377,378,382,386,372,373,374,375} = 3 Using Progression 1.0;

Transfinite Surface{357} = {131,132,1173,1172};
Transfinite Surface{361} = {132,136,1177,1173};
Transfinite Surface{365} = {136,140,1181,1177};
Transfinite Surface{369} = {140,131,1172,1181};
Transfinite Surface{370} = {1173,1177,1181,1172};

Transfinite Surface{379} = {141,142,1230,1229};
Transfinite Surface{383} = {142,146,1234,1230};
Transfinite Surface{387} = {146,150,1238,1234};
Transfinite Surface{391} = {150,141,1229,1238};
Transfinite Surface{392} = {1230,1234,1238,1229};

Recombine Surface {357,361,365,369,370};
Recombine Surface {379,383,387,391,392};

Transfinite Volume{17} = {131,132,136,140,1172,1173,1177,1181};
Transfinite Volume{18} = {141,142,146,150,1229,1230,1234,1238};

Physical Volume(18)=17;
Physical Volume(19)=18;

////////////////////

Extrude Surface {370,{0,0,0},{0,0,1},{0.0,0.423,0.020,lc},-Pi/4};
Extrude Surface {392,{0,0,0},{0,0,1},{0.0,0.423,0.020,lc},-Pi/4};

Transfinite Line {399,400,404,408,394,395,396,397} = 3 Using Progression 1.0;
Transfinite Line {421,422,426,430,416,417,418,419} = 3 Using Progression 1.0;

Transfinite Surface{401} = {1172,1173,1287,1286};
Transfinite Surface{405} = {1173,1177,1291,1287};
Transfinite Surface{409} = {1177,1181,1295,1291};
Transfinite Surface{413} = {1181,1172,1286,1295};
Transfinite Surface{414} = {1287,1291,1295,1286};

Transfinite Surface{423} = {1229,1230,1344,1343};
Transfinite Surface{427} = {1230,1234,1348,1344};
Transfinite Surface{431} = {1234,1238,1352,1348};
Transfinite Surface{435} = {1238,1229,1343,1352};
Transfinite Surface{436} = {1344,1348,1352,1343};

Recombine Surface {401,405,409,413,414};
Recombine Surface {423,427,431,435,436};

Transfinite Volume{19} = {1172,1173,1177,1181,1286,1287,1291,1295};
Transfinite Volume{20} = {1229,1230,1234,1238,1343,1344,1348,1352};

Physical Volume(20)=19;
Physical Volume(21)=20;

/////   Transfinite Surface{} = {};
////	Recombine Surface {};
////	Physical Volume()=;

Extrude Surface {414,{0,0,0},{0,0,1},{0.0,0.423,0.020,lc},-Pi/4};
Extrude Surface {436,{0,0,0},{0,0,1},{0.0,0.423,0.020,lc},-Pi/4};

Transfinite Line {443,444,448,452,438,439,440,441} = 3 Using Progression 1.0;
Transfinite Line {465,466,470,474,460,461,462,463} = 3 Using Progression 1.0;

Transfinite Surface{445} = {1286,1287,1401,1400};
Transfinite Surface{449} = {1287,1291,1405,1401};
Transfinite Surface{453} = {1291,1295,1409,1405};
Transfinite Surface{457} = {1295,1286,1400,1409};
Transfinite Surface{458} = {1401,1405,1409,1400};

Transfinite Surface{467} = {1343,1344,1458,1457};
Transfinite Surface{471} = {1344,1348,1462,1458};
Transfinite Surface{475} = {1348,1352,1466,1462};
Transfinite Surface{479} = {1352,1343,1457,1466};
Transfinite Surface{480} = {1458,1462,1466,1457};

Recombine Surface {445,449,453,457,458};
Recombine Surface {467,471,475,479,480};

Transfinite Volume{21} = {1286,1287,1291,1295,1400,1401,1405,1409};
Transfinite Volume{22} = {1343,1344,1348,1352,1457,1458,1462,1466};

Physical Volume(22)=21;
Physical Volume(23)=22;

//////////

Extrude Surface {458,{0,0,0},{0,0,1},{0.0,0.423,0.020,lc},-Pi/4};
Extrude Surface {480,{0,0,0},{0,0,1},{0.0,0.423,0.020,lc},-Pi/4};

Transfinite Line {487,488,492,496,482,483,484,485} = 3 Using Progression 1.0;
Transfinite Line {509,510,514,518,504,505,506,507} = 3 Using Progression 1.0;

Transfinite Surface{489} = {1400,1401,1515,1514};
Transfinite Surface{493} = {1401,1405,1519,1515};
Transfinite Surface{497} = {1405,1409,1523,1519};
Transfinite Surface{501} = {1409,1400,1514,1523};
Transfinite Surface{502} = {1515,1519,1523,1514};

Transfinite Surface{511} = {1457,1458,1572,1571};
Transfinite Surface{515} = {1458,1462,1576,1572};
Transfinite Surface{519} = {1462,1466,1580,1576};
Transfinite Surface{523} = {1466,1457,1571,1580};
Transfinite Surface{524} = {1572,1576,1580,1571};

Recombine Surface {489,493,497,501,502};
Recombine Surface {511,515,519,523,524};

Transfinite Volume{23} = {1400,1401,1405,1409,1514,1515,1519,1523};
Transfinite Volume{24} = {1457,1458,1462,1466,1571,1572,1576,1580};

Physical Volume(24)=23;
Physical Volume(25)=24;

//////////

Extrude Surface {502, {0.0,-0.0625,0.0}};
Extrude Surface {524, {0.0,-0.0625,0.0}};

Transfinite Line {531,532,536,540,526,527,528,529} = 3 Using Progression 1.0;
Transfinite Line {553,554,558,562,548,549,550,551} = 3 Using Progression 1.0;

Transfinite Surface{533} = {1514,1515,1629,1628};
Transfinite Surface{537} = {1515,1519,1633,1629};
Transfinite Surface{541} = {1519,1523,1637,1633};
Transfinite Surface{545} = {1523,1514,1628,1637};
Transfinite Surface{546} = {1629,1633,1637,1628};

Transfinite Surface{555} = {1571,1572,1639,1638};
Transfinite Surface{559} = {1572,1576,1643,1639};
Transfinite Surface{563} = {1576,1580,1647,1643};
Transfinite Surface{567} = {1580,1571,1638,1647};
Transfinite Surface{568} = {1639,1643,1647,1638};

Recombine Surface {533,537,541,545,546};
Recombine Surface {555,559,563,567,568};

Transfinite Volume{25} = {1514,1515,1519,1523,1628,1629,1633,1637};
Transfinite Volume{26} = {1571,1572,1576,1580,1638,1639,1643,1647};

Physical Volume(26)=25;
Physical Volume(27)=26;

//////////////////

Extrude Surface {546, {0.0,-0.0625,0.0}};
Extrude Surface {568, {0.0,-0.0625,0.0}};

Transfinite Line {575,576,580,584,570,571,572,573} = 3 Using Progression 1.0;
Transfinite Line {597,598,602,606,592,593,594,595} = 3 Using Progression 1.0;

Transfinite Surface{577} = {1628,1629,1649,1648};
Transfinite Surface{581} = {1629,1633,1653,1649};
Transfinite Surface{585} = {1633,1637,1657,1653};
Transfinite Surface{589} = {1637,1628,1648,1657};
Transfinite Surface{590} = {1649,1653,1657,1648};

Transfinite Surface{599} = {1638,1639,1659,1658};
Transfinite Surface{603} = {1639,1643,1663,1659};
Transfinite Surface{607} = {1643,1647,1667,1663};
Transfinite Surface{611} = {1647,1638,1658,1667};
Transfinite Surface{612} = {1659,1663,1667,1658};

Recombine Surface {577,581,585,589,590};
Recombine Surface {599,603,607,611,612};

Transfinite Volume{27} = {1628,1629,1633,1637,1648,1649,1653,1657};
Transfinite Volume{28} = {1638,1639,1643,1647,1658,1659,1663,1667};

Physical Volume(28)=27;
Physical Volume(29)=28;

/////////////

Extrude Surface {590, {0.0,-0.0625,0.0}};
Extrude Surface {612, {0.0,-0.0625,0.0}};

Transfinite Line {619,620,624,628,614,615,616,617} = 3 Using Progression 1.0;
Transfinite Line {641,642,646,650,636,637,638,639} = 3 Using Progression 1.0;

Transfinite Surface{621} = {1648,1649,1669,1668};
Transfinite Surface{625} = {1649,1653,1673,1669};
Transfinite Surface{629} = {1653,1657,1677,1673};
Transfinite Surface{633} = {1657,1648,1668,1677};
Transfinite Surface{634} = {1669,1673,1677,1668};

Transfinite Surface{643} = {1658,1659,1679,1678};
Transfinite Surface{647} = {1659,1663,1683,1679};
Transfinite Surface{651} = {1663,1667,1687,1683};
Transfinite Surface{655} = {1667,1658,1678,1687};
Transfinite Surface{656} = {1679,1683,1687,1678};

Recombine Surface {621,625,629,633,634};
Recombine Surface {643,647,651,655,656};

Transfinite Volume{29} = {1648,1649,1653,1657,1668,1669,1673,1677};
Transfinite Volume{30} = {1658,1659,1663,1667,1678,1679,1683,1687};

Physical Volume(30)=29;
Physical Volume(31)=30;

////////////

//	Transfinite Surface{} = {};
//	Recombine Surface {};
//	Physical Volume()=;

Extrude Surface {634, {0.0,-0.0625,0.0}};
Extrude Surface {656, {0.0,-0.0625,0.0}};

Transfinite Line {663,664,668,672,658,659,660,661} = 3 Using Progression 1.0;
Transfinite Line {685,686,690,694,680,681,682,683} = 3 Using Progression 1.0;

Transfinite Surface{665} = {1668,1669,1689,1688};
Transfinite Surface{669} = {1669,1673,1693,1689};
Transfinite Surface{673} = {1673,1677,1697,1693};
Transfinite Surface{677} = {1677,1668,1688,1697};
Transfinite Surface{678} = {1689,1693,1697,1688};

Transfinite Surface{687} = {1678,1679,1699,1698};
Transfinite Surface{691} = {1679,1683,1703,1699};
Transfinite Surface{695} = {1683,1687,1707,1703};
Transfinite Surface{699} = {1687,1678,1698,1707};
Transfinite Surface{700} = {1699,1703,1707,1698};

Recombine Surface {665,669,673,677,678};
Recombine Surface {687,691,695,699,700};

Transfinite Volume{31} = {1668,1669,1673,1677,1688,1689,1693,1697};
Transfinite Volume{32} = {1678,1679,1683,1687,1698,1699,1703,1707};

Physical Volume(32)=31;
Physical Volume(33)=32;

//////////////////////
Extrude Surface {678, {0.040,-0.0855,0.0}};
Extrude Surface {700, {0.040,-0.0855,0.0}};

Transfinite Line {707,708,712,716,702,703,704,705} = 3 Using Progression 1.0;
Transfinite Line {729,730,734,738,724,725,726,727} = 3 Using Progression 1.0;

Transfinite Surface{709} = {1688,1689,1709,1708};
Transfinite Surface{713} = {1689,1693,1713,1709};
Transfinite Surface{717} = {1693,1697,1717,1713};
Transfinite Surface{721} = {1697,1688,1708,1717};
Transfinite Surface{722} = {1709,1713,1717,1708};

Transfinite Surface{731} = {1698,1699,1719,1718};
Transfinite Surface{735} = {1699,1703,1723,1719};
Transfinite Surface{739} = {1703,1707,1727,1723};
Transfinite Surface{743} = {1707,1698,1718,1727};
Transfinite Surface{744} = {1719,1723,1727,1718};

Recombine Surface {709,713,717,721,722};
Recombine Surface {731,735,739,743,744};

Transfinite Volume{33} = {1688,1689,1693,1697,1708,1709,1713,1717};
Transfinite Volume{34} = {1698,1699,1703,1707,1718,1719,1723,1727};

Physical Volume(34)=33;
Physical Volume(35)=34;

//////////////

Extrude Surface {722, {0.0,-0.060,0.0}};
Extrude Surface {744, {0.0,-0.060,0.0}};

Transfinite Line {751,752,756,760,746,747,748,749} = 3 Using Progression 1.0;
Transfinite Line {773,774,778,782,768,769,770,771} = 3 Using Progression 1.0;

Transfinite Surface{753} = {1708,1709,1729,1728};
Transfinite Surface{757} = {1709,1713,1733,1729};
Transfinite Surface{761} = {1713,1717,1737,1733};
Transfinite Surface{765} = {1717,1708,1728,1737};
Transfinite Surface{766} = {1729,1733,1737,1728};

Transfinite Surface{775} = {1718,1719,1739,1738};
Transfinite Surface{779} = {1719,1723,1743,1739};
Transfinite Surface{783} = {1723,1727,1747,1743};
Transfinite Surface{787} = {1727,1718,1738,1747};
Transfinite Surface{788} = {1739,1743,1747,1738};

Recombine Surface {753,757,761,765,766};
Recombine Surface {775,779,783,787,788};

Transfinite Volume{35} = {1708,1709,1713,1717,1728,1729,1733,1737};
Transfinite Volume{36} = {1718,1719,1723,1727,1738,1739,1743,1747};

Physical Volume(36)=35;
Physical Volume(37)=36;

///////////

Extrude Surface {766, {0.0,-0.005,0.0}};
Extrude Surface {788, {0.0,-0.005,0.0}};

Transfinite Line {795,796,800,804,790,791,792,793} = 3 Using Progression 1.0;
Transfinite Line {817,818,822,826,812,813,814,815} = 3 Using Progression 1.0;

Transfinite Surface{797} = {1728,1729,1749,1748};
Transfinite Surface{801} = {1729,1733,1753,1749};
Transfinite Surface{805} = {1733,1737,1757,1753};
Transfinite Surface{809} = {1737,1728,1748,1757};
Transfinite Surface{810} = {1749,1753,1757,1748};

Transfinite Surface{819} = {1738,1739,1759,1758};
Transfinite Surface{823} = {1739,1743,1763,1759};
Transfinite Surface{827} = {1743,1747,1767,1763};
Transfinite Surface{831} = {1747,1738,1758,1767};
Transfinite Surface{832} = {1759,1763,1767,1758};

Recombine Surface {797,801,805,809,810};
Recombine Surface {819,823,827,831,832};

Transfinite Volume{37} = {1728,1729,1733,1737,1748,1749,1753,1757};
Transfinite Volume{38} = {1738,1739,1743,1747,1758,1759,1763,1767};

Physical Volume(38)=37;
Physical Volume(39)=38;

/////////////

