// Gmsh project created on Mon Feb 20 21:46:30 2006
Point(1) = {0,0,0,0.1};
Point(2) = {0,10,0,0.1};
Point(3) = {5,10,0,0.1};
Point(4) = {5,0,0,0.1};
Line(1) = {3,4};
Line(2) = {1,4};
Line(3) = {1,2};
Line(4) = {2,3};
Line Loop(5) = {1,-2,3,4};
Ruled Surface(6) = {5};
vol[] = Extrude {0,0,3} {
  Surface{6};
};

//Surface Loop(29) = {6,-15,-19,-23,-27,-28};
//Volume(30) = {29};

Transfinite Line {10,3,8,1} = 30 Using Progression 1;
Transfinite Line {9,2,11,4} = 10 Using Progression 1;
Transfinite Line {13,22,18,14} = 8 Using Progression 1;


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

Recombine Surface {6,15,27,23,28,19};

Transfinite Volume{vol[1]} = {10,6,4,1,14,5,3,2};

Physical Surface(31) = {28,19,15,27,23,6};
Physical Volume(50) ={vol[1]};

