lc = 15;


//Points of sphere


Point(1) = {0, 0, 0, lc};
Point(2) = {0.5, 0, 0, lc};
Point(3) = {-0.5, 0, 0, lc};
Point(4) = {0, 0.5, 0, lc};
Point(5) = {0, -0.5, 0, lc};
Point(6) = {0, 0, 0.5, lc};
Point(7) = {0, 0, -0.5, lc};



Circle(1) = {3, 1, 7};
Circle(2) = {3, 1, 5};
Circle(3) = {3, 1, 6};
Circle(4) = {6, 1, 2};
Circle(5) = {2, 1, 7};
Circle(6) = {6, 1, 5};
Circle(7) = {5, 1, 7};
Circle(8) = {5, 1, 2};
Circle(9) = {4, 1, 2};
Circle(10) = {4, 1, 3};
Circle(11) = {7, 1, 4};
Circle(12) = {6, 1, 4};


// Points of Cube
Point(8) = {1, -1, 1, lc};
Point(9) = {-1, -1, 1, lc};
Point(10) = {1, 1, 1, lc};
Point(11) = {-1, 1, 1, lc};
Point(12) = {1, 1, -1, lc};
Point(13) = {-1, 1, -1, lc};
Point(14) = {1, -1, -1, lc};
Point(15) = {-1, -1, -1, lc};


Line(80) = {8,9};
Line(81) = {9,11};
Line(82) = {11,10};
Line(83) = {10,8};
Line(84) = {12,13};
Line(85) = {13,15};
Line(86) = {15,14};
Line(87) = {14,12};
Line(88) = {8,14};
Line(89) = {10,12};
Line(90) = {11,13};
Line(91) = {9,15};



Line Loop(13) = {80,81,82,83};
Plane Surface(21) = {13};
Line Loop(15) = {84,85,86,87};
Plane Surface(23) = {15};
Line Loop(17) = {88,87,-89,83};
Plane Surface(25) = {17};
Line Loop(19) = {90,85,-91,81};
Plane Surface(20) = {19};
Line Loop(21) = {89,84,-90,82};
Plane Surface(22) = {21};
Line Loop(23) = {91,86,-88,80};
Plane Surface(24) = {23};
//Surface Loop(25) = {21,23,20,24,25,22};
//Volume(26) = {25};

Line Loop(14) = {10, 1, 11};
Ruled Surface(70) = {14};
Line Loop(16) = {11, 9, 5};
Ruled Surface(71) = {16};
Line Loop(18) = {12, 9, -4};
Ruled Surface(72) = {18};
Line Loop(63) = {10, 3, 12};
Ruled Surface(73) = {63};
Line Loop(64) = {2, -6, -3};
Ruled Surface(74) = {64};
Line Loop(65) = {6, 8, -4};
Ruled Surface(75) = {65};
Line Loop(26) = {5, -7, 8};
Ruled Surface(68) = {26};
Line Loop(28) = {2, 7, -1};
Ruled Surface(69) = {28};


Surface Loop(92) = {21,25,22,20,24,23}; //Surface of cube
Volume(94) = {92};
Surface Loop(93) = {69, 74, 75, 68, 71, 70, 73, 72}; //Surface of sphere
Volume(95) = {93};
