<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Steve, <div><br></div><div>Surfaces 17, 29, and 41 are generated when extruding. </div><div>You could recover them via an array e.g. vol[] that would contain each time the generated volume and surfaces.</div><div><br></div><div>Try replacing the four last lines of your code by:</div><div><div>vol[] = Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{5}; };</div><div>vol[] = Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{vol[0]}; };</div><div>vol[] = Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{vol[0]}; };</div><div>vol[] = Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{vol[0]}; };</div></div><div><br></div><div>vol[0] is the surface opposite to Surface 5</div><div>vol[1] is the volume</div><div>vol[2] is the outer surface of the cone</div><div>vol[3] is the base of the cone </div><div><br></div><div>Regards,</div><div>Ruth</div><div><br></div><div><br><div><div>On 13 Feb 2013, at 12:55, "Steve Daley" <<a href="mailto:stevedaley@sky.com">stevedaley@sky.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I am a new user to GMSH. I am having difficulty understanding one of the examples.<br><br>lc = 0.2;<br>Point(1) = {0,0,0,lc};<br>Point(2) = {1,0,0,lc};<br>Point(6) = {0,0,3,lc};<br>Line(1) = {1,2};<br>Line(2) = {2,6};<br>Line(3) = {6,1};<br>Line Loop(4) = {2,3,1};<br>Plane Surface(5) = {4};<br>Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{5}; }<br>Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{17}; }<br>Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{29}; }<br>Extrude {{0,0,1}, {0,0,0}, Pi/2} { Surface{41}; }<br><br>In the example, I can see how Surface{5} is defined and extruded but where are Surface {17} {29} and {41} defined.?<br><br>Is the fact that the surface numbers are incremented by 12 a function of the cone shape ?<br><br>I have developed my own example 3D tet mesh and can generate the quarter of the shape, (ip to the first of the Extrude lines) but don't know how to do the other three quarters to make up the complete mesh.<br><br>Any help gratefully received.<br><br>Steve Daley<br><br><br><br>_______________________________________________<br>gmsh mailing list<br><a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>http://www.geuz.org/mailman/listinfo/gmsh<br></blockquote></div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>—</div><div>Dr. Ir. Ruth V. Sabariego</div><div>University of Liege, Electrical Engineering and Computer Science</div><div><a href="http://ace.montefiore.ulg.ac.be/">http://ace.montefiore.ulg.ac.be/</a></div><div><br></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>