1Point(1) = {0, 0, 0}; 2Point(2) = {1, 0, 0}; 3Point(3) = {0, 1, 0}; 4 5Line(1) = {1, 2}; 6Line(2) = {2, 3}; 7Line(3) = {3, 1}; 8 9Line Loop(1) = {1,2,3}; 10Plane Surface(1) = {1}; 11 12out[] = Extrude{0,0,1}{ Surface{1}; Layers{1}; Recombine 1; }; 13 14Surface Loop(1) = {out[]}; 15 16Physical Point (1) = {1}; 17Physical Point (2) = {2}; 18Physical Point (3) = {3}; 19Physical Line (1) = {1}; 20Physical Line (2) = {2}; 21Physical Line (3) = {3}; 22Physical Surface (1) = {1}; 23Physical Surface (2) = {out[0]}; 24Physical Surface (3) = {out[2]}; 25Physical Surface (4) = {out[3]}; 26Physical Surface (5) = {out[4]}; 27Physical Volume (1) = {out[1]}; 28 29Transfinite Line "*" = 2; 30