<html><head><base href="x-msg://280/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You can get arrays with all the point, line, surface or volume numbers :<div><br></div><div>allPoints[] = Point "*" ;</div><div>allLines[] = Line "*" ;</div><div>allSurfaces[] = Surface "*";</div><div>allVolumes[] = Volume "*";</div><div><br></div><div>and then rotate then (possibly with duplication):</div><div><span class="Apple-style-span" style="font-family: Arial; font-size: 13px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Arial; font-size: 13px; ">Rotate {{0, 1, 0}, {0, 0, 0}, Pi/2} { Point{ allPoints[] } ; }</span></div><div><span class="Apple-style-span" style="font-family: Arial; font-size: 13px; ">Rotate {{0, 1, 0}, {0, 0, 0}, Pi/2} { Duplicata { Point{ allPoints[] } ; } }</span></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></div><div><span class="Apple-style-span" style="font-family: Arial; font-size: 13px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Arial; font-size: 13px; ">It is possible to do the operation directly on volumes or surfaces. </span></div><div><span class="Apple-style-span" style="font-family: Arial; font-size: 13px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Arial; font-size: 13px; "><div style="font-family: Helvetica; font-size: medium; "><span class="Apple-style-span" style="font-family: Arial; font-size: 13px; ">Rotate {{0, 1, 0}, {0, 0, 0}, Pi/2} { Surface{ allSurfaces[] } ; }</span></div><div style="font-family: Helvetica; font-size: medium; "><span class="Apple-style-span" style="font-family: Arial; font-size: 13px; ">Rotate {{0, 1, 0}, {0, 0, 0}, Pi/2} { Duplicata { Surface{ allSurfaces[] } ; } }</span></div></span></div><div><span class="Apple-style-span" style="font-family: Arial; font-size: 13px; "><br></span></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-size: 13px;">Pay attention to centers of circles or spheres, though...</span></font></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-size: 13px;">Regards,</span></font></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-size: 13px;">Ruth</span></font></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></div><div><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Dr. Ir. Ruth V. Sabariego</div><div>University of Liege, Electrical Engineering & Computer Science, </div><div>Applied & Computational Electromagnetics (ACE),</div><div>phone: +32-4-3663737 - fax: +32-4-3662910 - <a href="http://ace.montefiore.ulg.ac.be/">http://ace.montefiore.ulg.ac.be/</a></div><br class="Apple-interchange-newline"><br></div></span></div></span></span>
</div>
<br><div><div>On 26 Oct 2011, at 16:18, Zenker, Dr. Matthias wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><font face="Arial" size="2"><span style="font-size: 10pt; "><div>Hi,</div><div> </div><div>I have a simple question: I want to rotate an entire model (STEP or geo). It seems to me that I have to delete all surfaces and volumes, rotate the points, and redefine everything. Is there a more elegant way to do it? I have tried with</div><div> </div><div>Rotate {{0, 1, 0}, {0, 0, 0}, Pi/2} {"*";}</div><div> </div><div>but I get a syntax error.</div><div>(gmsh 2.5.1, Windoze XP)</div><div> </div><div>Any hint?</div><div> </div><div>Thank you,</div><div> </div><div>Matthias</div><div> </div><div><font size="3"><span style="font-size: 12pt; "><br><br>_____________________________________________________________________<br>ERBE Elektromedizin GmbH<br>Firmensitz: 72072 Tuebingen<br>Geschaeftsfuehrer: Christian O. Erbe, Reiner Thede<br>Registergericht: Stuttgart HRB 380137<br><br></span></font></div></span></font>_______________________________________________<br>gmsh mailing list<br><a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br><a href="http://www.geuz.org/mailman/listinfo/gmsh">http://www.geuz.org/mailman/listinfo/gmsh</a><br></div></span></blockquote></div><br></div></body></html>