Salome HOME
Join modifications from branch OCC_debug_for_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 -->\r
57 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
58 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
59 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
60 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
61 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
62 </head>\r
63 <body><script type="text/javascript" language="javascript1.2">\r
64 <!--\r
65 if (window.gbWhTopic)\r
66 {\r
67         if (window.addTocInfo)\r
68         {\r
69         addTocInfo("Geometry module\nTransforming geometrical objects\nTransformation Operations\nTranslation");\r
70 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
71 \r
72         }\r
73         if (window.writeBtnStyle)\r
74                 writeBtnStyle();\r
75 \r
76         if (window.writeIntopicBar)\r
77                 writeIntopicBar(1);\r
78 \r
79         if (window.setRelStartPage)\r
80         {\r
81         setRelStartPage("geom.htm");\r
82 \r
83                 autoSync(1);\r
84                 sendSyncInfo();\r
85                 sendAveInfoOut();\r
86         }\r
87 }\r
88 else\r
89         if (window.gbIE4)\r
90                 document.location.reload();\r
91 //-->\r
92 </script>\r
93 <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
94 \r
95 <p class="whs2"><b style="font-weight: normal;">T</b>o produce \r
96  a <span style="font-weight: bold;"><B>Translation</B></span> in the Main Menu \r
97  select <span style="font-weight: bold;"><B>Operations - &gt; Transformation \r
98  - &gt; Translation</B></span></p>\r
99 \r
100 <p class="whs2">&nbsp;</p>\r
101 \r
102 <p class="whs2">This Operation makes a translation of an <span \r
103  style="font-weight: bold;"><B>Object</B></span>. To translate a shape you need \r
104  to define the base shape and the coordinates of the vector of translation. \r
105  <span style="font-weight: bold;"><B>Create a copy </B></span>checkbox allows \r
106  to keep the initial object, otherwise it will be removed.</p>\r
107 \r
108 <p class="whs2"><b style="font-weight: bold;"><span style="font-weight: normal;">The</span> \r
109  Result <span style="font-weight: normal;">of all operations will be any</span></b> \r
110  GEOM_Object.</p>\r
111 \r
112 <p class="whs2">&nbsp;</p>\r
113 \r
114 <p class="whs2">Firstly you can define an <span style="font-weight: bold;"><B>Object</B></span> \r
115  and the vector coordinates along the axes. </p>\r
116 \r
117 <p class="whs2"><b style="font-weight: bold;">TUI Command:</b><i> \r
118  </i><span style="font-style: italic;"><I>geompy.MakeTranslation(Shape, DX, \r
119  DY, DZ)</I></span>, where Shape is a shape to be translated, DX, DY, DZ are \r
120  components of translation vector.</p>\r
121 \r
122 <p class="whs3"><b style="font-weight: bold;">Arguments:</b> \r
123  <b><span style="font-weight: normal;">Name + </b>1 shape + 3 values (coordinates).</span></p>\r
124 \r
125 <p class="whs3">&nbsp;</p>\r
126 \r
127 <p class="whs4"><img src="pics/transformation1.png" x-maintain-ratio="TRUE" width="312px" height="393px" border="0" class="img_whs5"></p>\r
128 \r
129 <p class="whs2">&nbsp;</p>\r
130 \r
131 <p class="whs2">Secondly you can define an <span style="font-weight: bold;"><B>Object</B></span> \r
132  and the start and the end points of the vector &nbsp;</p>\r
133 \r
134 <p class="whs2"><b style="font-weight: bold;">TUI Command: \r
135  </b><span style="font-style: italic;"><I>geompy.MakeTranslationTwoPoints(Object, \r
136  Point1, Point2)</I></span> </p>\r
137 \r
138 <p class="whs2"><span><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Arguments</font></span>: \r
139  <span style="font-weight: normal;">Name + </span></b>1 shape + 2 vertices</p>\r
140 \r
141 <p class="whs2">&nbsp;</p>\r
142 \r
143 <p class="whs4"><img src="pics/transformation2.png" x-maintain-ratio="TRUE" width="312px" height="393px" border="0" class="img_whs5"></p>\r
144 \r
145 <p class="whs2">&nbsp;</p>\r
146 \r
147 <p class="whs2"><span><font size=3 style="font-size:12pt;">Finally you can define an Object and \r
148  the vector &nbsp;</font></span></p>\r
149 \r
150 <p class="whs2"><b style="font-weight: bold;">TUI Command: \r
151  </b>geompy.MakeTranslationVector(Object, Vector)</p>\r
152 \r
153 <p class="whs2"><span><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Arguments</font></span>: \r
154  <span style="font-weight: normal;">Name + </span></b>1 shape + 1 vector.</p>\r
155 \r
156 <p class="whs2">&nbsp;</p>\r
157 \r
158 <p class="whs4"><img src="pics/transformation3.png" x-maintain-ratio="TRUE" width="312px" height="385px" border="0" class="img_whs6"></p>\r
159 \r
160 <p class="whs4">&nbsp;&nbsp;&nbsp;&nbsp;</p>\r
161 \r
162 <p class="whs4">&nbsp;</p>\r
163 \r
164 <p class="whs2"><b style="font-weight: bold;">Example:</b></p>\r
165 \r
166 <p class="whs2">&nbsp;</p>\r
167 \r
168 <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
169 \r
170 <p class="whs7">&nbsp;</p>\r
171 \r
172 <p class="whs10">&nbsp;&nbsp;<span \r
173  style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Our </font></span><span \r
174  style="font-weight: bold;"><B>TUI Scripts</B></span><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> \r
175  provide you with useful examples of the use of <a href="transformation_operations.htm#bookmark">Transformation \r
176  Operations</a>. </font></span></p>\r
177 \r
178 <p>&nbsp;</p>\r
179 \r
180 <script type="text/javascript" language="javascript1.2">\r
181 <!--\r
182 if (window.writeIntopicBar)\r
183         writeIntopicBar(0);\r
184 //-->\r
185 </script>\r
186 </body>\r
187 </html>\r