<span class="gI">Dear gmsh community<br><br>I'm wondering if it is possible to have .geo code like this:<br><br>/*********************************/<br>lc = 0.1;<br>coords[]= { {1,1,1}, {-1,1,1}, {1,-1,1}, {-1,-1,1} };<br>
<br>For i In {0:3}<br>    Point(i+1) = {coords[i,0],coords[i,1],coords[i,2],lc};<br>EndFor<br></span><span class="gI">/*********************************/</span><br><span class="gI"><br>That is, 'coords' is a matrix of values.  </span><span class="gI">I'm aware that if 'coords' is a list (a vector) of values the piece of code below would work. But if 'coords'  could be declared as a matrix, the rest of my code would be a lot easier.<br>

</span><br><span class="gI">/*********************************/</span><br><span class="gI">lc = 0.1;<br></span><span class="gI">coords[]= { 1,1,1, -1,1,1, 1,-1,1, -1,-1,1 };<br><br>aux=0;<br>N = #coords[]/3;<br>For i In {0:N-1}<br>
    Point(i) = {coords[aux+0],coords[aux+1],coords[aux+2],lc};<br>    aux = aux+3;<br>EndFor</span><span class="gI"><br>/*********************************/<br><br>Thanks <br>Olavo<br></span>