<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 25 Jul 2018, at 14:24, Ricardo Ruiz Baier <<a href="mailto:ruizbaier@maths.ox.ac.uk" class="">ruizbaier@maths.ox.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Dear all,<br class=""><br class=""><br class="">I would like to rotate an stl (actually, the resulting volumetric mesh)<br class="">around the z-axis.<br class=""><br class="">If I simply do<br class=""><br class="">Merge "test_surface.stl";<br class="">Surface Loop(2) = {1};<br class="">Volume(3) = {2};<br class="">Rotate {{0, 0, 1}, {0, 0, 0}, Pi/4} { Volume{3};}<br class=""><br class="">Then I can generate the volumetric mesh (and eventually rescale it with<br class="">Mesh.ScalingFactor = 2;) but the rotation has not been applied.<br class=""><br class="">If instead I apply the rotation on the surface<br class=""><br class="">Rotate {{0, 0, 1}, {0, 0, 0}, Pi/4} { Surface{1};}<br class=""><br class="">then gmsh throws an error:<br class=""><br class="">Impossible to transform entity 1 (of type 305)<br class=""><br class=""><br class="">Any assistance with this issue is much appreciated.<br class=""></div></div></blockquote><div><br class=""></div><div>All the geometrical transformation are applied on the CAD (geometry) level - there's nothing implemented on the mesh level.</div><div><br class=""></div><div>Christophe</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">Kind regards,<br class=""><br class="">Ricardo<br class=""><br class=""><br class=""><br class=""><span id="cid:5102E09A-EAF9-4FB6-8F1B-E60B80167EDE@home"><test_surface.stl></span>_______________________________________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></div></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">— </div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science <br class=""><a href="http://www.montefiore.ulg.ac.be/~geuzaine" class="">http://www.montefiore.ulg.ac.be/~geuzaine</a><br class=""><br class="">Free software: http://gmsh.info | http://getdp.info | http://onelab.info</div></div>
</div>
<br class=""></body></html>