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 img_whs4 { border:none; width:312px; height:393px; float:none; border-style:none; }
\r
21 img_whs5 { border:none; width:312px; height:385px; float:none; border-style:none; }
\r
22 p.whs6 { font-size:12pt; margin-left:40px; }
\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
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
63 <body><script type="text/javascript" language="javascript1.2">
\r
65 if (window.gbWhTopic)
\r
67 if (window.addTocInfo)
\r
69 addTocInfo("GEOM module\nTransforming geometrical objects\nTransformation Operations\nTranslation");
\r
70 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");
\r
73 if (window.writeBtnStyle)
\r
76 if (window.writeIntopicBar)
\r
79 if (window.setRelStartPage)
\r
81 setRelStartPage("geom.htm");
\r
90 document.location.reload();
\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
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 - > Transformation
\r
98 - > Translation</B></span></p>
\r
100 <p class="whs2"> </p>
\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
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
112 <p class="whs2"> </p>
\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
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
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
125 <p class="whs3"> </p>
\r
127 <p class="whs2"><img src="pics/transformation1.png" x-maintain-ratio="TRUE" width="312px" height="393px" border="0" class="img_whs4"></p>
\r
129 <p class="whs2"> </p>
\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 </p>
\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
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
141 <p class="whs2"> </p>
\r
143 <p class="whs2"><img src="pics/transformation2.png" x-maintain-ratio="TRUE" width="312px" height="393px" border="0" class="img_whs4"></p>
\r
145 <p class="whs2"> </p>
\r
147 <p class="whs2"><span><font size=3 style="font-size:12pt;">Finally you can define an Object and
\r
148 the vector </font></span></p>
\r
150 <p class="whs2"><b style="font-weight: bold;">TUI Command:
\r
151 </b>geompy.MakeTranslationVector(Object, Vector)</p>
\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
156 <p class="whs2"> </p>
\r
158 <p class="whs2"><img src="pics/transformation3.png" x-maintain-ratio="TRUE" width="312px" height="385px" border="0" class="img_whs5"></p>
\r
160 <p class="whs6"> </p>
\r
162 <p class="whs6"> </p>
\r
164 <p class="whs2"><b style="font-weight: bold;">Example:</b></p>
\r
166 <p class="whs2"> </p>
\r
168 <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
170 <p class="whs7"> </p>
\r
172 <p class="whs10"> <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
180 <script type="text/javascript" language="javascript1.2">
\r
182 if (window.writeIntopicBar)
\r
183 writeIntopicBar(0);
\r