Salome HOME
5d85b828326960310df767e32b8e095fffa1bb5c
[modules/geom.git] / doc / salome / gui / GEOM / multi_rotation.htm
1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">\r
2 \r
3 <html>\r
4 \r
5 <head>\r
6 <title>Multi Rotation</title>\r
7 <meta http-equiv="content-type" content="text/html; charset=windows-1252">\r
8 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">\r
9 <link rel="stylesheet" href="default_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">\r
10 <!--\r
11 if (navigator.appName !="Netscape")\r
12 {   document.write("<link rel='stylesheet' href='default.css'>");}\r
13 //-->\r
14 </script>\r
15 <style type="text/css">\r
16 <!--\r
17 img_whs1 { width:20px; height:20px; border-style:none; }\r
18 p.whs2 { font-size:12pt; }\r
19 p.whs3 { font-size:12pt; font-weight:bold; }\r
20 p.whs4 { font-size:12pt; font-weight:normal; }\r
21 img_whs5 { border:none; width:312px; height:346px; float:none; border-style:none; }\r
22 img_whs6 { border:none; float:none; width:315px; height:259px; border-style:none; }\r
23 img_whs7 { border:none; float:none; width:301px; height:258px; border-style:none; }\r
24 img_whs8 { border:none; width:312px; height:450px; float:none; border-style:none; }\r
25 img_whs9 { border:none; float:none; width:341px; height:446px; border-style:none; }\r
26 img_whs10 { border:none; float:none; width:369px; height:447px; border-style:none; }\r
27 p.whs11 { font-size:12pt; margin-left:40px; }\r
28 -->\r
29 </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
30 <!--\r
31 function reDo() {\r
32   if (innerWidth != origWidth || innerHeight != origHeight)\r
33      location.reload();\r
34 }\r
35 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
36         origWidth = innerWidth;\r
37         origHeight = innerHeight;\r
38         onresize = reDo;\r
39 }\r
40 onerror = null; \r
41 //-->\r
42 </script>\r
43 <style type="text/css">\r
44 <!--\r
45 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
46 -->\r
47 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
48 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
49 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
50 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
51 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
52 </head>\r
53 <body><script type="text/javascript" language="javascript1.2">\r
54 <!--\r
55 if (window.gbWhTopic)\r
56 {\r
57         if (window.addTocInfo)\r
58         {\r
59         addTocInfo("GEOM module\nTransforming geometrical objects\nTransformation Operations\nMulti Rotation");\r
60 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
61 \r
62         }\r
63         if (window.writeBtnStyle)\r
64                 writeBtnStyle();\r
65 \r
66         if (window.writeIntopicBar)\r
67                 writeIntopicBar(1);\r
68 \r
69         if (window.setRelStartPage)\r
70         {\r
71         setRelStartPage("geom.htm");\r
72 \r
73                 autoSync(1);\r
74                 sendSyncInfo();\r
75                 sendAveInfoOut();\r
76         }\r
77 }\r
78 else\r
79         if (window.gbIE4)\r
80                 document.location.reload();\r
81 //-->\r
82 </script>\r
83 <h1><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image133.gif" width="20px" height="20px" border="0" class="img_whs1"> &nbsp;</font></span>Multi \r
84  Rotation</h1>\r
85 \r
86 <p class="whs2"><b style="font-weight: normal;">T</b>o produce \r
87  a <span style="font-weight: bold;"><B>Multi Rotation</B></span> in the Main Menu \r
88  select <span style="font-weight: bold;"><B>Operations - &gt; Transformation \r
89  - &gt; Multi Rotation</B></span> </p>\r
90 \r
91 <p class="whs2">&nbsp;</p>\r
92 \r
93 <p class="whs2">This operation creates several geometrical \r
94  objects rotated in <span style="font-weight: bold;"><B>one </B></span>or <span \r
95  style="font-weight: bold;"><B>two </B></span>dimentions basing on the initial \r
96  geometrical object. </p>\r
97 \r
98 <p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;"><span \r
99  style="font-weight: normal;">The</span> Result <span style="font-weight: normal;">will \r
100  be one or several</span></b> GEOM_Objects (compound).</font></span></p>\r
101 \r
102 <p>&nbsp;</p>\r
103 \r
104 <p class="whs2">To produce a <span style="font-weight: bold;"><B>Simple \r
105  Multi Rotation</B></span> (in one dimension) you need to define a <span style="font-weight: bold;"><B>Shape</B></span> \r
106  to be rotated, an <span style="font-weight: bold;"><B>Axis</B></span> of rotation \r
107  and a <span style="font-weight: bold;"><B>Number of Times</B></span> the shape \r
108  must be rotated. <span style="font-weight: bold;"><B>Rotation Angle</B></span> \r
109  will be 2*PI/NbTimes</p>\r
110 \r
111 <p class="whs3"><b style="font-weight: bold;">TUI \r
112  Command: </b><span style="font-style: italic; font-weight: normal;"><I>geompy.MakeMultiRotation1D(Shape, \r
113  Axis, NbTimes)</I></span></p>\r
114 \r
115 <p class="whs3"><b style="font-weight: bold;">Arguments: \r
116  </b><span style="font-weight: normal;">Name + 1 shape + 1 vector for direction \r
117  + 1 value (repetition).</span></p>\r
118 \r
119 <p class="whs3">&nbsp;</p>\r
120 \r
121 <p class="whs4">There is a <span style="font-weight: bold;"><B>TUI \r
122  Command</B></span> <span style="font-style: italic;"><I>geompy.MakeMultiRotation1D(Shape, \r
123  Dir, Point, NbTimes)</I></span><span style="font-size: 12pt; font-weight: normal;"><font size=3 style="font-size:12pt;"> \r
124  which works in the same way, but the Axis is defined &nbsp;by \r
125  direction and point. </font></span></p>\r
126 \r
127 <p class="whs3">&nbsp;</p>\r
128 \r
129 <p class="whs2"><img src="pics/neo-mrot1.png" x-maintain-ratio="TRUE" width="312px" height="346px" border="0" class="img_whs5"> <img src="pics/multi_rotation1d1.png" x-maintain-ratio="TRUE" width="315px" height="259px" border="0" class="img_whs6"> &nbsp;<img src="pics/multi_rotation1d2.png" x-maintain-ratio="TRUE" width="301px" height="258px" border="0" class="img_whs7"></p>\r
130 \r
131 <p class="whs2">&nbsp;</p>\r
132 \r
133 <p class="whs2"><span style="font-weight: bold;"><B>Double Multi \r
134  Rotation</B></span> (in two dimensions) rotates the given <span style="font-weight: bold;"><B>Object</B></span> \r
135  around the given <span style="font-weight: bold;"><B>Axis</B></span> on the given \r
136  <span style="font-weight: bold;"><B>Angle</B></span> a given <span style="font-weight: bold;"><B>Number \r
137  of Times</B></span> and multi-translates each rotation result. &nbsp;Translation \r
138  direction passes through the center of gravity of the rotated shape and \r
139  its projection on the rotation axis. <span style="font-weight: bold;"><B>Reverse \r
140  </B></span>checkbox allows to set the direction of rotation.</p>\r
141 \r
142 <p class="whs2"><b style="font-weight: bold;">T<span style="font-weight: bold;"><B>UI \r
143  Command: </B></span><span style="font-weight: normal;">g</span></b><span style="font-style: italic;"><I>eompy.MakeMultiRotation2D(Shape, \r
144  Axis, Angle, NbTimes1, Step, NbTimes2)</I></span></p>\r
145 \r
146 <p class="whs2"><span style="font-style: italic;"><I><b style="font-weight: bold;">A</I></span><span \r
147  style="font-weight: bold;"><B>rguments: </B></span></b>Name + 1 shape + 1 vector \r
148  for direction + 1 angle + 1 value (repetition) + 1 step value + 1 value \r
149  (repetition);</p>\r
150 \r
151 <p class="whs2">&nbsp;</p>\r
152 \r
153 <p class="whs2">There is a <span style="font-weight: bold;"><B>TUI \r
154  Command</B></span> <span style="font-style: italic;"><I>geompy.MakeMultiRotation2D(Shape, \r
155  Dir, Point, Angle, nbtimes1, Step, nbtimes2</I></span><span style="font-style: italic;"><I>)</I></span> \r
156  which works in the same way, but the Axis is defined &nbsp;by \r
157  direction and point. </p>\r
158 \r
159 <p class="whs2">&nbsp;</p>\r
160 \r
161 <p class="whs2"><img src="pics/neo-mrot2.png" x-maintain-ratio="TRUE" width="312px" height="450px" border="0" class="img_whs8"></p>\r
162 \r
163 <p class="whs2">&nbsp;&nbsp;</p>\r
164 \r
165 <p class="whs2">&nbsp;<img src="pics/multi_rotation2d1.png" x-maintain-ratio="TRUE" width="341px" height="446px" border="0" class="img_whs9"> &nbsp;&nbsp;&nbsp;<img src="pics/multi_rotation2d2.png" x-maintain-ratio="TRUE" width="369px" height="447px" border="0" class="img_whs10"></p>\r
166 \r
167 <p class="whs11">&nbsp;&nbsp;&nbsp;&nbsp;</p>\r
168 \r
169 <p class="whs11">Our <span style="font-weight: bold;"><B>TUI \r
170  Scripts</B></span> provide you with useful examples of the use of <a href="transformation_operations.htm#bookmark9">Transformation \r
171  Operations</a>. </p>\r
172 \r
173 <p>&nbsp;</p>\r
174 \r
175 <script type="text/javascript" language="javascript1.2">\r
176 <!--\r
177 if (window.writeIntopicBar)\r
178         writeIntopicBar(0);\r
179 //-->\r
180 </script>\r
181 </body>\r
182 </html>\r