Salome HOME
Merge from OCC_development_generic_2006
[modules/geom.git] / doc / salome / gui / GEOM / multi_translation.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 Translation</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 img_whs3 { border:none; width:312px; height:398px; float:none; border-style:none; }\r
20 img_whs4 { border:none; height:203px; float:none; width:282px; border-style:none; }\r
21 img_whs5 { border:none; width:291px; height:202px; float:none; border-style:none; }\r
22 img_whs6 { border:none; width:312px; height:509px; float:none; border-style:none; }\r
23 img_whs7 { border:none; float:none; width:292px; height:209px; border-style:none; }\r
24 img_whs8 { border:none; width:288px; height:209px; float:none; border-style:none; }\r
25 p.whs9 { list-style:disc; margin-left:0in; margin-right:0in; margin-top:0px; margin-bottom:0px; }\r
26 -->\r
27 </style><script type="text/javascript" language="JavaScript">\r
28 <!--\r
29 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
30 {\r
31   var strNSS = "<style type='text/css'>";\r
32   strNSS += "p.whs9 {margin-left:1pt;margin-right:1pt;margin-top:1pt;margin-bottom:1pt; }";\r
33   strNSS +="</style>";\r
34   document.write(strNSS);\r
35 }\r
36 //-->\r
37 </script>\r
38 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
39 <!--\r
40 function reDo() {\r
41   if (innerWidth != origWidth || innerHeight != origHeight)\r
42      location.reload();\r
43 }\r
44 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
45         origWidth = innerWidth;\r
46         origHeight = innerHeight;\r
47         onresize = reDo;\r
48 }\r
49 onerror = null; \r
50 //-->\r
51 </script>\r
52 <style type="text/css">\r
53 <!--\r
54 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
55 -->\r
56 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
57 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
58 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
59 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
60 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
61 </head>\r
62 <body><script type="text/javascript" language="javascript1.2">\r
63 <!--\r
64 if (window.gbWhTopic)\r
65 {\r
66         if (window.addTocInfo)\r
67         {\r
68         addTocInfo("GEOM module\nTransforming geometrical objects\nTransformation Operations\nMulti Translation");\r
69 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
70 \r
71         }\r
72         if (window.writeBtnStyle)\r
73                 writeBtnStyle();\r
74 \r
75         if (window.writeIntopicBar)\r
76                 writeIntopicBar(1);\r
77 \r
78         if (window.setRelStartPage)\r
79         {\r
80         setRelStartPage("geom.htm");\r
81 \r
82                 autoSync(1);\r
83                 sendSyncInfo();\r
84                 sendAveInfoOut();\r
85         }\r
86 }\r
87 else\r
88         if (window.gbIE4)\r
89                 document.location.reload();\r
90 //-->\r
91 </script>\r
92 <h1><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image132.gif" width="20px" height="20px" border="0" class="img_whs1"> </font></span>Multi Translation</h1>\r
93 \r
94 <p class="whs2"><b style="font-weight: normal;">T</b>o produce \r
95  a <span style="font-weight: bold;"><B>Multi Translation</B></span> in the Main \r
96  Menu select <span style="font-weight: bold;"><B>Operations - &gt; Transformation \r
97  - &gt; Multi Translation</B></span> </p>\r
98 \r
99 <p class="whs2">&nbsp;</p>\r
100 \r
101 <p class="whs2"><b style="font-weight: normal;">This operation</b> \r
102  makes several translations of a shape in <span style="font-weight: bold;"><B>one</B></span> \r
103  or <span style="font-weight: bold;"><B>two</B></span> directions.</p>\r
104 \r
105 <p class="whs2"><b style="font-weight: bold;"><span style="font-weight: normal;">The</span> \r
106  Result <span style="font-weight: normal;">will be one or several</span></b> \r
107  GEOM_Objects (compound).</p>\r
108 \r
109 <p class="whs2">&nbsp;</p>\r
110 \r
111 <p class="whs2">To produce a <span style="font-weight: bold;"><B>Simple \r
112  Multi Translation</B></span> (in one direction) you need to indicate a <span \r
113  style="font-weight: bold;"><B>Shape</B></span> to be translated, a <span style="font-weight: bold;"><B>Vector</B></span> \r
114  of translation, a <span style="font-weight: bold;"><B>Step</B></span> of translation \r
115  and a <span style="font-weight: bold;"><B>Number of Times</B></span> the shape \r
116  must be moved.</p>\r
117 \r
118 <p class="whs2"><b style="font-weight: bold;">TUI Command: \r
119  </b><span style="font-style: italic;"><I>geompy.MakeMultiTranslation1D(Shape, \r
120  Dir, Step, NbTimes)</I></span></p>\r
121 \r
122 <p class="whs2"><b>A<span style="font-weight: bold;"><B>rguments: \r
123  </B></span></b>Name + 1 shape + 1 vector (for direction) + 1 step value + \r
124  1 value (repetition).</p>\r
125 \r
126 <p class="whs2">&nbsp;</p>\r
127 \r
128 <p class="whs2">&nbsp;<img src="pics/mtrans1.png" x-maintain-ratio="TRUE" width="312px" height="398px" border="0" class="img_whs3"> &nbsp;</p>\r
129 \r
130 <p class="whs2"><img src="pics/multi_translation_initialsn.png" x-maintain-ratio="TRUE" height="203px" width="282px" border="0" class="img_whs4"> &nbsp;<img src="pics/multi_translation1dsn.png" x-maintain-ratio="TRUE" width="291px" height="202px" border="0" class="img_whs5"></p>\r
131 \r
132 <p class="whs2">&nbsp;</p>\r
133 \r
134 <p class="whs2">To produce a <span style="font-weight: bold;"><B>Double \r
135  Multi Translation</B></span> (in two directions) you need to indicate a <span \r
136  style="font-weight: bold;"><B>Shape</B></span> to be translated and a <span style="font-weight: bold;"><B>Vector</B></span> \r
137  of translation, a <span style="font-weight: bold;"><B>Step</B></span> of translation \r
138  and a <span style="font-weight: bold;"><B>Number of Times</B></span> the shape \r
139  must be moved along each axis.</p>\r
140 \r
141 <p class="whs2">&nbsp;</p>\r
142 \r
143 <p class="whs2"><b>TUI Command: <span style="font-style: italic; font-weight: normal;"><I>g</I></span></b><span \r
144  style="font-style: italic;"><I>eompy.MakeMultiTranslation2D(Shape, Dir1, \r
145  Step1, NbTimes1, Dir2, Step2, NbTimes2)</I></span>, where <span style="font-style: italic;"><I>Shape</I></span> \r
146  is a shape to be translated, <span style="font-style: italic;"><I>Dir1</I></span> \r
147  is the first direction of translation, <span style="font-style: italic;"><I>Step1</I></span> \r
148  of the first translation, <span style="font-style: italic;"><I>NbTimes1</I></span> \r
149  is a number of translations to be done along <span style="font-style: italic;"><I>Dir1</I></span>, \r
150  <span style="font-style: italic;"><I>Dir2</I></span> is the second direction \r
151  of translation, <span style="font-style: italic;"><I>Step2</I></span> of the \r
152  second translation, <span style="font-style: italic;"><I>NbTimes2</I></span> \r
153  is a number of translations to be done along <span style="font-style: italic;"><I>Dir2</I></span>.</p>\r
154 \r
155 <p class="whs2"><b>A<span style="font-weight: bold;"><B>rguments: \r
156  </B></span></b>Name + 1 shape + 2 vectors defining the direction + 2 step \r
157  values + 2 values (repetitions).</p>\r
158 \r
159 <p class="whs2">&nbsp;</p>\r
160 \r
161 <p class="whs2"><img src="pics/mtrans2.png" x-maintain-ratio="TRUE" width="312px" height="509px" border="0" class="img_whs6"> </p>\r
162 \r
163 <p class="whs2"><img src="pics/multi_translation_initialsn.png" x-maintain-ratio="TRUE" width="292px" height="209px" border="0" class="img_whs7"> &nbsp;<img src="pics/multi_translation2dsn.png" x-maintain-ratio="TRUE" width="288px" height="209px" border="0" class="img_whs8"></p>\r
164 \r
165 <p class="whs9">&nbsp;&nbsp;</p>\r
166 \r
167 <p class="whs9"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Our </font></span><span \r
168  style="font-weight: bold;"><B>TUI Scripts</B></span><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> \r
169  provide you with useful examples of the use of <a href="transformation_operations.htm#bookmark8">Transformation \r
170  Operations</a>. </font></span></p>\r
171 \r
172 <p>&nbsp;</p>\r
173 \r
174 <script type="text/javascript" language="javascript1.2">\r
175 <!--\r
176 if (window.writeIntopicBar)\r
177         writeIntopicBar(0);\r
178 //-->\r
179 </script>\r
180 </body>\r
181 </html>\r