<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Keith,<br>
There is a semicolon missing, i.e.<br>
<div>
<div><font class="Apple-style-span" face="'courier new',
monospace">x1[]=Extrude { {1,0,0},{0,0,0}, Pi/2}
{Surface{4};};</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">x2[]=Extrude { {1,0,0},{0,0,0}, Pi/2} {Surface{
x1[0] };};</font></div>
</div>
<br>
You have to add it when working with lists.<br>
<br>
Ruth<br>
<br>
<br>
On 20/08/11 08:28, Keith Pickering wrote:
<blockquote
cite="mid:CA+6VJEsmh2Ge7WJFruJyjrh3Ug2Gmi0Kj9MhYuLci0c33oRk0Q@mail.gmail.com"
type="cite">Why doesn't this work?
<div><br>
</div>
<div>
<div><font class="Apple-style-span" face="'courier new',
monospace">x1[]=Extrude { {1,0,0},{0,0,0}, Pi/2}
{Surface{4};}</font></div>
<div><font class="Apple-style-span" face="'courier new',
monospace">x2[]=Extrude { {1,0,0},{0,0,0}, Pi/2} {Surface{
x1[0] };}</font></div>
</div>
<div><font class="Apple-style-span" face="'courier new',
monospace"><br>
</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif">The first extrude works fine. The second throws a
syntax error. The GMSH user manual says that the </font><font
class="Apple-style-span" face="'courier new', monospace"><i>string</i>[]</font><font
class="Apple-style-span" face="arial, helvetica, sans-serif">
format is ok for use in expression lists, and x1[0] should be
the top of the extrusion (i.e., the new surface) also
according to the user manual.</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif">Keith Pickering</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<div><font class="Apple-style-span" face="arial, helvetica,
sans-serif"><br>
</font></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gmsh mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gmsh@geuz.org">gmsh@geuz.org</a>
<a class="moz-txt-link-freetext" href="http://www.geuz.org/mailman/listinfo/gmsh">http://www.geuz.org/mailman/listinfo/gmsh</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Dr. Ir. Ruth V. Sabariego
University of Liege, Dept. of Electrical Engineering & Computer Science,
Applied & Computational Electromagnetics (ACE),
phone: +32-4-3663737 - fax: +32-4-3662910 - <a class="moz-txt-link-freetext" href="http://ace.montefiore.ulg.ac.be/">http://ace.montefiore.ulg.ac.be/</a>
</pre>
</body>
</html>