<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(7,55,99)"><div class="gmail_default" style="font-family:georgia,serif">Dear <span class="">gmsh</span> devs,</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Suppose I want to create a skewed hexahedral geometry to be meshed using a structured method. I want to use extrusions to create a regular cube first and then translating the points created by the extrusion to 'skew' it. </div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Translating the extruded points and lines works, but the surfaces and volumes created by extrusion seem attached to their old geometry, generating errors. </div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Please see example below:</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default"><font face="monospace, monospace">//Create 1x1x1 cube using extrusions</font></div><div class="gmail_default"><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace">Point(1) = {0, 0, 0, 1};</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace">lines[] = Extrude {1, 0, 0}{ </font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"> Point{1};</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"> Layers{10};</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"> Recombine;</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace">};</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace">surfaces[] = Extrude {0, 1, 0}{ </font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"> Line{lines[]};</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"> Layers{10};</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"> Recombine;</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace">};</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace">volumes[] = Extrude {0, 0, 1}{ </font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"> Surface{surfaces[]};</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"> Layers{10};</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"> Recombine;</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace">};</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace">// Distort the geometry using a translation for point on a face</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"><br></font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace">Translate {1, 0, 0} {</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace"> Point{2, 1, 4, 3};</font></div><div class="gmail_default" style="color:rgb(34,34,34);font-size:12.8px"><font color="#073763" face="monospace, monospace">}</font></div><div><font color="#073763" face="monospace, monospace"><br></font></div><div><font color="#073763" face="georgia, serif"><br></font></div><div style="font-family:georgia,serif"><font color="#073763" face="georgia, serif"><br></font></div></div></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(7,55,99)"><br></div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font face="georgia, serif">Saludos/Regards,</font></div><div><font face="georgia, serif"><br></font></div><font face="georgia, serif"><div style="font-size:small;color:rgb(7,55,99);display:inline"></div><span style="font-size:small">--</span><br style="font-size:small"><font size="1">José A. Abel<font color="#000000">l M., <div style="display:inline">PhD</div></font><br><i>Ingeniero Civil <br></i>Profesor Investigador</font></font><div><font face="georgia, serif" size="1">Facultad de Ingeniería y Ciencias Aplicadas<br>Universidad de los Andes</font></div><div><font face="georgia, serif" size="1"><font color="#000000">(+56<div style="display:inline"></div><div style="display:inline"></div>)<div style="display:inline">2</div>-2412<div style="display:inline">-</div>932</font>1</font></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>