<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Hi Alessandro, </div>
<div class=""><br class="">
</div>
<div class="">The problem is the order of the operations. </div>
<div class="">You do a rotation of surfaces that define volume 1.</div>
<div class="">That’s why they are kept. </div>
<div class=""><br class="">
</div>
<div class="">The rotation is properly handled if you write it as follows:</div>
<div class=""><br class="">
</div>
<div class="">tmp[] = Physical Surface {102,103};</div>
<div class="">Rotate {{1, 0, 0}, {-0.5, 0.65, -0.25}, Pi/6} {</div>
<div class="">   Surface {tmp[]};</div>
<div class="">}</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Surface Loop(5) = {28, 23, 25, 27, 26, 24};</div>
<div class="">Surface Loop(6) = {9, 4, 6, 8, 7, 10, 1, 22, 18, 21, 20, 17, 19};</div>
<div class="">Surface Loop(7) = {15, 11, 13, 12, 16, 14};</div>
<div class="">Volume(1) = {5, 6, 7};</div>
<div class="">Physical Volume(999) = {1}; </div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Best regards, </div>
<div class="">Ruth</div>
<div class=""><br class="">
</div>
<br class="">
<div class="">
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
—<br class="">
Prof. Ruth V. Sabariego<br class="">
KU Leuven  <br class="">
Dept. Electrical Engineering ESAT/Electa, EnergyVille<br class="">
<a href="http://www.esat.kuleuven.be/electa" class="">http://www.esat.kuleuven.be/electa</a></div>
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<a href="http://www.energyville.be" class="">http://www.energyville.be</a></div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Free software: <a href="http://gmsh.info" class="">http://gmsh.info</a> | <a href="http://getdp.info" class="">http://getdp.info</a> | <a href="http://onelab.info" class="">http://onelab.info</a><br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 20 Oct 2017, at 10:46, Alessandro Vicini <<a href="mailto:alessandro.vicini@sitael.com" class="">alessandro.vicini@sitael.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class=""><br class="">
Hullo everybody. In the last two lines of the attached geo file I retrieve the list of elementary surfaces ID from their physical IDs, and then apply a rotation to the list. However, only the edges are rotated, and the "old" surfaces and edges are not deleted
 after the operation. Why...? Thank you.<br class="">
<br class="">
Alessandro<br class="">
<br class="">
<br class="">
<span id="cid:DA809178-230E-45E3-95F4-83C18B0EC60F@esat.kuleuven.be"><Test.geo></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="">
</body>
</html>