// General.Trackball = 0;
// General.RotationCenterGravity = 0;
// General.RotationCenterX = 0;
// General.RotationCenterY = 0;
// General.RotationCenterZ = 0;
// General.RotationX = 10;
// General.RotationY = 70;
// General.TranslationZ = -525;

// General.ZoomFactor = 2;


lc = 5;
lcMasse = 3;
lcContact = 1.5;
lcEdge = 1;


Point(1) = {70.32,18.3,0.,lcMasse};
Point(2) = {67.77,7.32,0.,lcMasse};
Point(3) = {64.91,-5.25,0.,lc};
Point(4) = {63.32,-11.77,0.,lc};
Point(5) = {50.27,-16.07,0.,lcMasse};
Point(6) = {36.11,2.86,0.,lcContact};
Point(7) = {66.34,1.03,0.,lc};

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


Point(8) = {60.06,2.47,0.,lcMasse};
Circle(5) = {2,7,8};
Circle(6) = {8,7,3};


Point(18) = {65.07,18.25,0.,lcMasse};
Point(10) = {59.5,17.66,0.,lcMasse};
Point(11) = {35.20,5.09,0.,lcContact};
Point(12) = {49,15.59,0.,lcMasse};
Point(13) = {41.86,13.51,0.,lcContact};
Point(17) = {36.50,10.95,0.,lcContact};
Point(14) = {35.20,9.50,0.,lcContact};
Point(15) = {34.84,7,0.,lcContact};

CatmullRom(7) = {6,11,15,14,17,13};
CatmullRom(8) = {13,12,10,18,1};
Line(9) = {5,6};


Line Loop(11) = {5,6,2,3,8,9,7,1};
Plane Surface(12) = {11};


Extrude Surface {12, {0,0,-50}};
Characteristic Length {21, 26, 30, 34, 38, 42, 43, 44, 45, 46, 50} = lc * 2;
Characteristic Length {19, 51, 52, 53} = lc * 5;

Surface Loop(226) = {49,12,25,29,33,37,41,45,54,53};
Volume(227) = {226};

Bande = 100;
Physical Volume (Bande) = {227};
Mouve = 110;
Physical Surface(Mouve) = {12};
Fond = 120;
Physical Surface(Fond) = {54};
SectionSym = 130;
Physical Surface(SectionSym) = {54} ;

Rayon = 30;
XIni=-0.25;
YHaut = 4;
ZPress = 0.03;
Point(89) = {52,0,ZPress,lcEdge};
Point(90) = {52+Rayon,0,ZPress,lcEdge};
Point(91) = {52, Rayon,ZPress,lcEdge};

Circle(258) = {90,89,91};

Extrude Line {258, {0,0,1}, {52,0,ZPress}, Pi/2};
Extrude Line {259, {0,0,1}, {52,0,ZPress}, Pi/2};
Extrude Line {263, {0,0,1}, {52,0,ZPress}, Pi/2};

Line Loop(271) = {259,263,267,258};
Plane Surface(272) = {271};
Extrude Surface {272, {0,0,30}};

Surface Loop(295) = {281,272,285,289,293,294};
Volume(296) = {295};

Bille = 200;
Physical Volume (Bille) = {296};

PeauBille=210;
Physical Surface(PeauBille) = {272};
