/********************************************************************* 
 *
 *  Gmsh tutorial 6
 * 
 *  Transfinite meshes
 *
 *********************************************************************/

// Let's use the geometry from the first tutorial as a basis for this
// one
Include "modelAttala.geo";

// Transfinite Line{1} = 6 ; 
// Transfinite Line{2,4} = 6;
// Transfinite Line{3} = 6 ;
// Transfinite Surface{10} = {1,2,3,4};
// Recombine Surface { 10 };

// This is the surface we would like to check the normals on
Physical Surface(4) = { 10 };

// // Case 1
// // positive extrusion in 
// // z direction with layers
// vol[]=Extrude {0.0,0.0,0.14}{ Surface{10}; Layers{4}; };
// // vol[]=Extrude {0.0,0.0,0.14}{ Surface{10};};
// Physical Volume (11) = { vol[1] } ;
// // Normals of the physical surface are in the -z direction 
// // as they should be

// // Case 2
// // negative extrusion in 
// // -z direction with layers
// vol[]=Extrude {0.0,0.0,-0.14}{ Surface{10}; Layers{4}; };
// // vol[]=Extrude {0.0,0.0,0.14}{ Surface{10};};
// Physical Volume (11) = { vol[1] } ;
// // Normals of the physical surface are in the -z direction 
// // but should not they point out of the object
// // stl save of the surface also points in the wrong direction

// Case 3
// negative extrusion in 
// -z direction w/out layers
vol[]=Extrude {0.0,0.0,-0.14}{ Surface{10};};
// vol[]=Extrude {0.0,0.0,0.14}{ Surface{10};};
Physical Volume (11) = { vol[1] } ;
// Normals of the physical surface are in the z direction 
// as they should be, they point out of the object
// stl save of the surface also points in the right direction

