<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2013/10/9 Zenker, Dr. Matthias <span dir="ltr"><<a href="mailto:Matthias.Zenker@erbe-med.com" target="_blank">Matthias.Zenker@erbe-med.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I don't know how to get the number of a surface created by extrusion automatically.<br>
You can either define your physical entities in the GUI (Geometry->Physical Groups->Add), or tell gmsh to "save all" when you save the mesh, as I wrote before.<br></blockquote><div><br></div><div>Hello. Using the GUI like so is probably the easiest way to identify the desired volume and plane surfaces, but it is also possible to extract the identifying numbers from the value returned by the Extrude command in a script. See<br>
<br> <a href="http://geuz.org/gmsh/doc/texinfo/gmsh.html#Extrusions">http://geuz.org/gmsh/doc/texinfo/gmsh.html#Extrusions</a><br></div><div> <br></div><div>where the syntax is demonstrated in a short example at the end, including the line <br>
<pre class=""> out[] = Extrude{0,1,0}{ Line{1}; };<br><br></pre></div></div></div></div>