Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/geom.git] / doc / salome / gui / GEOM / 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>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 p.whs3 { font-size:12pt; font-weight:bold; }\r
20 p.whs4 { font-size:12pt; margin-left:40px; }\r
21 img_whs5 { border:none; width:312px; height:393px; float:none; border-style:none; }\r
22 img_whs6 { border:none; width:312px; height:385px; float:none; border-style:none; }\r
23 p.whs7 { margin-left:40px; }\r
24 img_whs8 { border:none; width:331px; height:334px; float:none; border-style:none; }\r
25 img_whs9 { border:none; width:320px; height:333px; float:none; border-style:none; }\r
26 p.whs10 { list-style:disc; margin-left:0in; margin-right:0in; margin-top:0px; margin-bottom:0px; }\r
27 -->\r
28 </style><script type="text/javascript" language="JavaScript">\r
29 <!--\r
30 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
31 {\r
32   var strNSS = "<style type='text/css'>";\r
33   strNSS += "p.whs10 {margin-left:1pt;margin-right:1pt;margin-top:1pt;margin-bottom:1pt; }";\r
34   strNSS +="</style>";\r
35   document.write(strNSS);\r
36 }\r
37 //-->\r
38 </script>\r
39 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
40 <!--\r
41 function reDo() {\r
42   if (innerWidth != origWidth || innerHeight != origHeight)\r
43      location.reload();\r
44 }\r
45 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
46         origWidth = innerWidth;\r
47         origHeight = innerHeight;\r
48         onresize = reDo;\r
49 }\r
50 onerror = null; \r
51 //-->\r
52 </script>\r
53 <style type="text/css">\r
54 <!--\r
55 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
56 p.WebHelpNavBar { text-align:right; }\r
57 -->\r
58 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
59 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
60 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
61 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
62 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
63 <script type="text/javascript" language="javascript1.2">\r
64 <!--\r
65 if (window.gbWhTopic)\r
66 {\r
67         if (window.setRelStartPage)\r
68         {\r
69         addTocInfo("Geometry module\nTransforming geometrical objects\nTransformation Operations\nTranslation");\r
70 addButton("show",BTN_IMG,"Show","","","","",0,0,"whd_show0.gif","whd_show2.gif","whd_show1.gif");\r
71 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"whd_hide0.gif","whd_hide2.gif","whd_hide1.gif");\r
72 \r
73         }\r
74 \r
75 \r
76         if (window.setRelStartPage)\r
77         {\r
78         setRelStartPage("index.htm");\r
79 \r
80                 autoSync(1);\r
81                 sendSyncInfo();\r
82                 sendAveInfoOut();\r
83         }\r
84 \r
85 }\r
86 else\r
87         if (window.gbIE4)\r
88                 document.location.reload();\r
89 //-->\r
90 </script>\r
91 </head>\r
92 <body><script type="text/javascript" language="javascript1.2">\r
93 <!--\r
94 if (window.writeIntopicBar)\r
95         writeIntopicBar(4);\r
96 //-->\r
97 </script>\r
98 <h1><b style="font-weight: bold;"><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image128.gif" width="20px" height="20px" border="0" class="img_whs1"> </font></span></b>Translation</h1>\r
99 \r
100 <p class="whs2"><b style="font-weight: normal;">T</b>o produce \r
101  a <span style="font-weight: bold;"><B>Translation</B></span> in the Main Menu \r
102  select <span style="font-weight: bold;"><B>Operations - &gt; Transformation \r
103  - &gt; Translation</B></span></p>\r
104 \r
105 <p class="whs2">&nbsp;</p>\r
106 \r
107 <p class="whs2">This Operation makes a translation of an <span \r
108  style="font-weight: bold;"><B>Object</B></span>. To translate a shape you need \r
109  to define the base shape and the coordinates of the vector of translation. \r
110  <span style="font-weight: bold;"><B>Create a copy </B></span>checkbox allows \r
111  to keep the initial object, otherwise it will be removed.</p>\r
112 \r
113 <p class="whs2"><b style="font-weight: bold;"><span style="font-weight: normal;">The</span> \r
114  Result <span style="font-weight: normal;">of all operations will be any</span></b> \r
115  GEOM_Object.</p>\r
116 \r
117 <p class="whs2">&nbsp;</p>\r
118 \r
119 <p class="whs2">Firstly you can define an <span style="font-weight: bold;"><B>Object</B></span> \r
120  and the vector coordinates along the axes. </p>\r
121 \r
122 <p class="whs2"><b style="font-weight: bold;">TUI Command:</b><i> \r
123  </i><span style="font-style: italic;"><I>geompy.MakeTranslation(Shape, DX, \r
124  DY, DZ)</I></span>, where Shape is a shape to be translated, DX, DY, DZ are \r
125  components of translation vector.</p>\r
126 \r
127 <p class="whs3"><b style="font-weight: bold;">Arguments:</b> \r
128  <b><span style="font-weight: normal;">Name + </b>1 shape + 3 values (coordinates).</span></p>\r
129 \r
130 <p class="whs3">&nbsp;</p>\r
131 \r
132 <p class="whs4"><img src="pics/transformation1.png" x-maintain-ratio="TRUE" width="312px" height="393px" border="0" class="img_whs5"></p>\r
133 \r
134 <p class="whs2">&nbsp;</p>\r
135 \r
136 <p class="whs2">Secondly you can define an <span style="font-weight: bold;"><B>Object</B></span> \r
137  and the start and the end points of the vector &nbsp;</p>\r
138 \r
139 <p class="whs2"><b style="font-weight: bold;">TUI Command: \r
140  </b><span style="font-style: italic;"><I>geompy.MakeTranslationTwoPoints(Object, \r
141  Point1, Point2)</I></span> </p>\r
142 \r
143 <p class="whs2"><span><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Arguments</font></span>: \r
144  <span style="font-weight: normal;">Name + </span></b>1 shape + 2 vertices</p>\r
145 \r
146 <p class="whs2">&nbsp;</p>\r
147 \r
148 <p class="whs4"><img src="pics/transformation2.png" x-maintain-ratio="TRUE" width="312px" height="393px" border="0" class="img_whs5"></p>\r
149 \r
150 <p class="whs2">&nbsp;</p>\r
151 \r
152 <p class="whs2"><span><font size=3 style="font-size:12pt;">Finally you can define an Object and \r
153  the vector &nbsp;</font></span></p>\r
154 \r
155 <p class="whs2"><b style="font-weight: bold;">TUI Command: \r
156  </b>geompy.MakeTranslationVector(Object, Vector)</p>\r
157 \r
158 <p class="whs2"><span><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Arguments</font></span>: \r
159  <span style="font-weight: normal;">Name + </span></b>1 shape + 1 vector.</p>\r
160 \r
161 <p class="whs2">&nbsp;</p>\r
162 \r
163 <p class="whs4"><img src="pics/transformation3.png" x-maintain-ratio="TRUE" width="312px" height="385px" border="0" class="img_whs6"></p>\r
164 \r
165 <p class="whs4">&nbsp;&nbsp;&nbsp;&nbsp;</p>\r
166 \r
167 <p class="whs4">&nbsp;</p>\r
168 \r
169 <p class="whs2"><b style="font-weight: bold;">Example:</b></p>\r
170 \r
171 <p class="whs2">&nbsp;</p>\r
172 \r
173 <p class="whs7"><img src="pics/translationsn1.png" x-maintain-ratio="TRUE" width="331px" height="334px" border="0" class="img_whs8"> &nbsp;<img src="pics/translationsn2.png" x-maintain-ratio="TRUE" width="320px" height="333px" border="0" class="img_whs9"></p>\r
174 \r
175 <p class="whs7">&nbsp;</p>\r
176 \r
177 <p class="whs10">&nbsp;&nbsp;<span \r
178  style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Our </font></span><span \r
179  style="font-weight: bold;"><B>TUI Scripts</B></span><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> \r
180  provide you with useful examples of the use of <a href="transformation_operations.htm#bookmark">Transformation \r
181  Operations</a>. </font></span></p>\r
182 \r
183 <p>&nbsp;</p>\r
184 \r
185 <script type="text/javascript" language="javascript1.2">\r
186 <!--\r
187 if (window.writeIntopicBar)\r
188         writeIntopicBar(0);\r
189 //-->\r
190 </script>\r
191 </body>\r
192 </html>\r