<div dir="ltr">Hi,<div><br></div><div>I would like to know how to find the order of the "side" elements (lines or surfaces) that are generated during an extrusion. Thanks for any information.</div><div><br></div><div>Also, while doing some related testing, I saw some results that I could not explain from the script below.</div><div><br></div><div>/*** start ***/</div><div><div>Printf("next line ID = %g; next surface ID = %g", newl, news);</div><div>Point(1) = {0, 0, 0};</div><div>Point(2) = {0, 1, 0};</div><div>Line(1) = {1, 2};</div><div>Printf("next line ID = %g; next surface ID = %g", newl, news);</div><div><br></div><div>out[] = Extrude {0, 0, 1} {Line{1}; };</div><div><br></div><div>n = #out[];</div><div>Printf("Extrude has returned %g elements", n);</div><div>n -= 1;</div><div>For i In {0 : n}</div><div>    Printf("Extrusion value[%g] = %g.", i, out[i]);</div><div>EndFor</div><div><br></div><div>Printf("next line ID = %g; next surface ID = %g", newl, news);</div></div><div>/*** end ***/</div><div><br></div><div>The output is</div><div><br></div><div>1 <font color="#0000ff"> next line ID = 1; next surface ID = 1</font><br></div><div><div>2 <font color="#0000ff"> next line ID = 2; next surface ID = 2</font></div><div>3 <span style="color:rgb(0,0,255)"> Extrude has returned 4 elements</span><br></div><div>4 <font color="#0000ff"> Extrusion value[0] = 2.</font></div><div>5 <font color="#0000ff"> Extrusion value[1] = 5.</font></div><div>6 <font color="#0000ff"> Extrusion value[2] = 4.</font></div><div>7 <font color="#0000ff"> Extrusion value[3] = -3.</font></div><div>8 <font color="#0000ff"> next line ID = 6; next surface ID = 6</font></div></div><div><br></div><div>Here are the things that did not seem right:</div><div><ul><li>The value returned by news in line 2 is too high. No surface was created yet, so it should remain as 1.</li><li>The next free surface has a value of 1, so line 5 should give the extruded surface a value of 1 instead of 5.</li><li>I thought the IDs should all be positive, so line 7 seems wrong.</li></ul><div>I would appreciate some explanations of what Gmsh is doing in these instances.</div></div><div><br></div><div>Jim Monte</div><div><br></div></div>