1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
\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
11 if (navigator.appName !="Netscape")
\r
12 { document.write("<link rel='stylesheet' href='default.css'>");}
\r
15 <style type="text/css">
\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
28 </style><script type="text/javascript" language="JavaScript">
\r
30 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
\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
39 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
\r
42 if (innerWidth != origWidth || innerHeight != origHeight)
\r
45 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
\r
46 origWidth = innerWidth;
\r
47 origHeight = innerHeight;
\r
53 <style type="text/css">
\r
55 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
\r
56 p.WebHelpNavBar { text-align:right; }
\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
65 if (window.gbWhTopic)
\r
67 if (window.setRelStartPage)
\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
76 if (window.setRelStartPage)
\r
78 setRelStartPage("index.htm");
\r
88 document.location.reload();
\r
92 <body><script type="text/javascript" language="javascript1.2">
\r
94 if (window.writeIntopicBar)
\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
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 - > Transformation
\r
103 - > Translation</B></span></p>
\r
105 <p class="whs2"> </p>
\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
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
117 <p class="whs2"> </p>
\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
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
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
130 <p class="whs3"> </p>
\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
134 <p class="whs2"> </p>
\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 </p>
\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
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
146 <p class="whs2"> </p>
\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
150 <p class="whs2"> </p>
\r
152 <p class="whs2"><span><font size=3 style="font-size:12pt;">Finally you can define an Object and
\r
153 the vector </font></span></p>
\r
155 <p class="whs2"><b style="font-weight: bold;">TUI Command:
\r
156 </b>geompy.MakeTranslationVector(Object, Vector)</p>
\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
161 <p class="whs2"> </p>
\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
165 <p class="whs4"> </p>
\r
167 <p class="whs4"> </p>
\r
169 <p class="whs2"><b style="font-weight: bold;">Example:</b></p>
\r
171 <p class="whs2"> </p>
\r
173 <p class="whs7"><img src="pics/translationsn1.png" x-maintain-ratio="TRUE" width="331px" height="334px" border="0" class="img_whs8"> <img src="pics/translationsn2.png" x-maintain-ratio="TRUE" width="320px" height="333px" border="0" class="img_whs9"></p>
\r
175 <p class="whs7"> </p>
\r
177 <p class="whs10"> <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
185 <script type="text/javascript" language="javascript1.2">
\r
187 if (window.writeIntopicBar)
\r
188 writeIntopicBar(0);
\r