Salome HOME
Fix problem with table of contents resizing
[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 p.whs5 { font-size:12pt; margin-left:40px; }\r
22 img_whs6 { border:none; width:312px; height:346px; float:none; border-style:none; }\r
23 img_whs7 { border:none; float:none; width:315px; height:260px; border-style:none; }\r
24 img_whs8 { border:none; float:none; width:301px; height:260px; border-style:none; }\r
25 img_whs9 { border:none; width:312px; height:450px; float:none; border-style:none; }\r
26 img_whs10 { border:none; float:none; width:310px; height:405px; border-style:none; }\r
27 img_whs11 { border:none; float:none; width:337px; height:405px; border-style:none; }\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 p.WebHelpNavBar { text-align:right; }\r
47 -->\r
48 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
49 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
50 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
51 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
52 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
53 <script type="text/javascript" language="javascript1.2">\r
54 <!--\r
55 if (window.gbWhTopic)\r
56 {\r
57         if (window.setRelStartPage)\r
58         {\r
59         addTocInfo("Geometry module\nTransforming geometrical objects\nTransformation Operations\nMulti Rotation");\r
60 addButton("show",BTN_IMG,"Show","","","","",0,0,"whd_show0.gif","whd_show2.gif","whd_show1.gif");\r
61 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"whd_hide0.gif","whd_hide2.gif","whd_hide1.gif");\r
62 \r
63         }\r
64 \r
65 \r
66         if (window.setRelStartPage)\r
67         {\r
68         setRelStartPage("index.htm");\r
69 \r
70                 autoSync(1);\r
71                 sendSyncInfo();\r
72                 sendAveInfoOut();\r
73         }\r
74 \r
75 }\r
76 else\r
77         if (window.gbIE4)\r
78                 document.location.reload();\r
79 //-->\r
80 </script>\r
81 </head>\r
82 <body><script type="text/javascript" language="javascript1.2">\r
83 <!--\r
84 if (window.writeIntopicBar)\r
85         writeIntopicBar(4);\r
86 //-->\r
87 </script>\r
88 <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
89  Rotation</h1>\r
90 \r
91 <p class="whs2"><b style="font-weight: normal;">T</b>o produce \r
92  a <span style="font-weight: bold;"><B>Multi Rotation</B></span> in the Main Menu \r
93  select <span style="font-weight: bold;"><B>Operations - &gt; Transformation \r
94  - &gt; Multi Rotation</B></span> </p>\r
95 \r
96 <p class="whs2">&nbsp;</p>\r
97 \r
98 <p class="whs2">This operation creates several geometrical \r
99  objects rotated in <span style="font-weight: bold;"><B>one </B></span>or <span \r
100  style="font-weight: bold;"><B>two </B></span>dimensions basing on the initial \r
101  geometrical object. </p>\r
102 \r
103 <p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;"><span \r
104  style="font-weight: normal;">The</span> Result <span style="font-weight: normal;">will \r
105  be one or several</span></b> GEOM_Objects (compound).</font></span></p>\r
106 \r
107 <p>&nbsp;</p>\r
108 \r
109 <p class="whs2">To produce a <span style="font-weight: bold;"><B>Simple \r
110  Multi Rotation</B></span> (in one dimension) you need to define a <span style="font-weight: bold;"><B>Shape</B></span> \r
111  to be rotated, an <span style="font-weight: bold;"><B>Axis</B></span> of rotation \r
112  and a <span style="font-weight: bold;"><B>Number of Times</B></span> the shape \r
113  must be rotated. <span style="font-weight: bold;"><B>Rotation Angle</B></span> \r
114  will be 2*PI/NbTimes</p>\r
115 \r
116 <p class="whs3"><b style="font-weight: bold;">TUI \r
117  Command: </b><span style="font-style: italic; font-weight: normal;"><I>geompy.MultiRotate1D(Shape, \r
118  Axis, NbTimes)</I></span></p>\r
119 \r
120 <p class="whs3"><b style="font-weight: bold;">Arguments: \r
121  </b><span style="font-weight: normal;">Name + 1 shape + 1 vector for direction \r
122  + 1 value (repetition).</span></p>\r
123 \r
124 <p class="whs3">&nbsp;</p>\r
125 \r
126 <p class="whs4">There is a <span style="font-weight: bold;"><B>TUI</B></span>-only<span \r
127  style="font-weight: bold;"> <B></B></span>command <span style="font-style: italic;"><I>geompy.MakeMultiRotation1D(Shape, \r
128  Dir, Point, NbTimes)</I></span> which works in the same way, but the Axis \r
129  is defined &nbsp;by \r
130  direction and point. </p>\r
131 \r
132 <p class="whs3">&nbsp;</p>\r
133 \r
134 <p class="whs5"><img src="pics/neo-mrot1.png" x-maintain-ratio="TRUE" width="312px" height="346px" border="0" class="img_whs6"> </p>\r
135 \r
136 <p class="whs5"><img src="pics/multi_rotation1d1.png" x-maintain-ratio="TRUE" width="315px" height="260px" border="0" class="img_whs7"> &nbsp;<img src="pics/multi_rotation1d2.png" x-maintain-ratio="TRUE" width="301px" height="260px" border="0" class="img_whs8"></p>\r
137 \r
138 <p class="whs2">&nbsp;</p>\r
139 \r
140 <p class="whs2"><span style="font-weight: bold;"><B>Double Multi \r
141  Rotation</B></span> (in two dimensions) rotates the given <span style="font-weight: bold;"><B>Object</B></span> \r
142  around the given <span style="font-weight: bold;"><B>Axis</B></span> on the given \r
143  <span style="font-weight: bold;"><B>Angle</B></span> a given <span style="font-weight: bold;"><B>Number \r
144  of Times</B></span> and multi-translates each rotation result. &nbsp;Translation \r
145  direction passes through the center of gravity of the rotated shape and \r
146  its projection on the rotation axis. <span style="font-weight: bold;"><B>Reverse \r
147  </B></span>checkbox allows to set the direction of rotation.</p>\r
148 \r
149 <p class="whs2"><b style="font-weight: bold;">T<span style="font-weight: bold;"><B>UI \r
150  Command: </B></span><span style="font-weight: normal;">g</span></b><span style="font-style: italic;"><I>eompy.MultiRotate2D(Shape, \r
151  Axis, Angle, NbTimes1, Step, NbTimes2)</I></span></p>\r
152 \r
153 <p class="whs2"><span style="font-style: italic;"><I><b style="font-weight: bold;">A</I></span><span \r
154  style="font-weight: bold;"><B>rguments: </B></span></b>Name + 1 shape + 1 vector \r
155  for direction + 1 angle + 1 value (repetition) + 1 step value + 1 value \r
156  (repetition);</p>\r
157 \r
158 <p class="whs2">&nbsp;</p>\r
159 \r
160 <p class="whs2">There is a <span style="font-weight: bold;"><B>TUI</B></span>-only \r
161  command <span style="font-style: italic;"><I>geompy.MakeMultiRotation2D(Shape, \r
162  Dir, Point, Angle, nbtimes1, Step, nbtimes2)</I></span> which works in the \r
163  same way, but the Axis is defined &nbsp;by \r
164  direction and point. </p>\r
165 \r
166 <p class="whs2">&nbsp;</p>\r
167 \r
168 <p class="whs5"><img src="pics/neo-mrot2.png" x-maintain-ratio="TRUE" width="312px" height="450px" border="0" class="img_whs9"></p>\r
169 \r
170 <p class="whs5">&nbsp;</p>\r
171 \r
172 <p class="whs5"><img src="pics/multi_rotation2d1.png" x-maintain-ratio="TRUE" width="310px" height="405px" border="0" class="img_whs10"> &nbsp;<img src="pics/multi_rotation2d2.png" x-maintain-ratio="TRUE" width="337px" height="405px" border="0" class="img_whs11"></p>\r
173 \r
174 <p class="whs2">&nbsp;&nbsp;<span \r
175  style="font-size: 12pt; margin-left: 40px;"><font size=3 style="font-size:12pt;">&nbsp;&nbsp;&nbsp;&nbsp;</font></span></p>\r
176 \r
177 <p class="whs5">Our <span style="font-weight: bold;"><B>TUI \r
178  Scripts</B></span> provide you with useful examples of the use of <a href="transformation_operations.htm#bookmark9">Transformation \r
179  Operations</a>. </p>\r
180 \r
181 <p>&nbsp;</p>\r
182 \r
183 <script type="text/javascript" language="javascript1.2">\r
184 <!--\r
185 if (window.writeIntopicBar)\r
186         writeIntopicBar(0);\r
187 //-->\r
188 </script>\r
189 </body>\r
190 </html>\r