Salome HOME
Merge from OCC_development_generic_2006
[modules/geom.git] / doc / salome / gui / GEOM / modify_the_location.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>Modify the Location</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 { border:none; width:25px; height:22px; border-style:none; }\r
18 p.whs2 { font-size:12pt; }\r
19 img_whs3 { border:none; width:312px; height:350px; float:none; border-style:none; }\r
20 img_whs4 { border:none; width:431px; height:233px; border-style:none; }\r
21 img_whs5 { border:none; width:312px; height:385px; float:none; border-style:none; }\r
22 img_whs6 { border:none; width:326px; height:377px; border-style:none; }\r
23 p.whs7 { list-style:disc; margin-left:0in; margin-right:0in; margin-top:0px; margin-bottom:0px; }\r
24 -->\r
25 </style><script type="text/javascript" language="JavaScript">\r
26 <!--\r
27 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
28 {\r
29   var strNSS = "<style type='text/css'>";\r
30   strNSS += "p.whs7 {margin-left:1pt;margin-right:1pt;margin-top:1pt;margin-bottom:1pt; }";\r
31   strNSS +="</style>";\r
32   document.write(strNSS);\r
33 }\r
34 //-->\r
35 </script>\r
36 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
37 <!--\r
38 function reDo() {\r
39   if (innerWidth != origWidth || innerHeight != origHeight)\r
40      location.reload();\r
41 }\r
42 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
43         origWidth = innerWidth;\r
44         origHeight = innerHeight;\r
45         onresize = reDo;\r
46 }\r
47 onerror = null; \r
48 //-->\r
49 </script>\r
50 <style type="text/css">\r
51 <!--\r
52 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
53 -->\r
54 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
55 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
56 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
57 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
58 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
59 </head>\r
60 <body><script type="text/javascript" language="javascript1.2">\r
61 <!--\r
62 if (window.gbWhTopic)\r
63 {\r
64         if (window.addTocInfo)\r
65         {\r
66         addTocInfo("GEOM module\nTransforming geometrical objects\nTransformation Operations\nModify the Location");\r
67 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
68 \r
69         }\r
70         if (window.writeBtnStyle)\r
71                 writeBtnStyle();\r
72 \r
73         if (window.writeIntopicBar)\r
74                 writeIntopicBar(1);\r
75 \r
76         if (window.setRelStartPage)\r
77         {\r
78         setRelStartPage("geom.htm");\r
79 \r
80                 autoSync(1);\r
81                 sendSyncInfo();\r
82                 sendAveInfoOut();\r
83         }\r
84 }\r
85 else\r
86         if (window.gbIE4)\r
87                 document.location.reload();\r
88 //-->\r
89 </script>\r
90 <h1><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="image59.gif" width="25px" height="22px" border="0" class="img_whs1"> </font></span>Modify the Location</h1>\r
91 \r
92 <p class="whs2"><b style="font-weight: normal;">T</b>o<span \r
93  style="font-weight: bold;"><B> Modify the Location</B></span> in the Main Menu \r
94  select <span style="font-weight: bold;"><B>Operations - &gt; Transformation \r
95  - &gt; Modify the Location.</B></span></p>\r
96 \r
97 <p class="whs2">&nbsp;</p>\r
98 \r
99 <p class="whs2">This operation modifies the <span style="font-weight: bold;"><B>Location</B></span> \r
100  of an <span style="font-weight: bold;"><B>Object </B></span></p>\r
101 \r
102 <p class="whs2">The first algorithm places the object so that \r
103  its center coincides with the center of an End Local Coordinate System.</p>\r
104 \r
105 <p class="whs2"><span style="font-weight: bold;"><B>Create a copy \r
106  </B></span>checkbox allows to keep the initial object, otherwise it will be \r
107  removed.</p>\r
108 \r
109 <p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><span><b style="font-weight: bold;">A</span>rguments:</b> \r
110  Name + 1 GEOM_Object + End Coordinate System.</font></span></p>\r
111 \r
112 <p>&nbsp;</p>\r
113 \r
114 <p class="whs2"><img src="pics/transformation5.png" x-maintain-ratio="TRUE" width="312px" height="350px" border="0" class="img_whs3"> &nbsp;&nbsp;</p>\r
115 \r
116 <p class="whs2">&nbsp;</p>\r
117 \r
118 <p class="whs2">In the picture the initial cube with the global \r
119  coordinate system is &nbsp;to \r
120  the right and the modified cube with the Local Coordinate System in the \r
121  center of it is to the left . </p>\r
122 \r
123 <p class="whs2">&nbsp;</p>\r
124 \r
125 <p class="whs2"><img src="image30.gif" width="431px" height="233px" border="0" class="img_whs4"></p>\r
126 \r
127 <p class="whs2">&nbsp;</p>\r
128 \r
129 <p class="whs2">The second algorithm &nbsp;modifies \r
130  the location of an object using Start and End LSC, however, it does not \r
131  place the object in the center of any of the two systems. &nbsp;</p>\r
132 \r
133 <p class="whs2"><span style="font-weight: bold;"><B>Create a copy \r
134  </B></span>checkbox allows to keep the initial object, otherwise it will be \r
135  removed.</p>\r
136 \r
137 <p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Arguments:</b> \r
138  Name + 1 GEOM_Object + Start Coordinate System + End Coordinate System.</font></span></p>\r
139 \r
140 <p class="whs2">&nbsp;</p>\r
141 \r
142 <p class="whs2"><img src="pics/transformation6.png" x-maintain-ratio="TRUE" width="312px" height="385px" border="0" class="img_whs5"></p>\r
143 \r
144 <p class="whs2">&nbsp;</p>\r
145 \r
146 <p class="whs2">In this picture the initial cube with the global \r
147  coordinate system is above, the modified cube is below and the End Local \r
148  Coordinate System is the big one. </p>\r
149 \r
150 <p class="whs2">&nbsp;</p>\r
151 \r
152 <p class="whs2"><img src="image31.gif" width="326px" height="377px" border="0" class="img_whs6"></p>\r
153 \r
154 <p class="whs2">&nbsp;</p>\r
155 \r
156 <p class="whs2">The <span style="font-weight: bold;"><B>R</B></span><b><span \r
157  style="font-weight: bold;"><B>esult</B></span><span style="font-weight: normal;"> \r
158  of this operation will be a</span> </b>&nbsp;GEOM_Object.</p>\r
159 \r
160 <p class="whs2">&nbsp;</p>\r
161 \r
162 <p class="whs2"><b style="font-weight: bold;">TUI Command:</b><i> \r
163  geompy.MakePosition(theObject, theStartLCS, theEndLCS), </i>where&nbsp;theObject \r
164  is a shape, location of which is modified, theStartLCS is a location to \r
165  move the shape from, theEndLCS is a location to move the shape to.</p>\r
166 \r
167 <p class="whs2">&nbsp;</p>\r
168 \r
169 <p class="whs7"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">Our </font></span><span \r
170  style="font-weight: bold;"><B>TUI Scripts</B></span><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> \r
171  provide you with useful examples of the use of <a href="transformation_operations.htm#bookmark2">Transformation \r
172  Operations</a>. </font></span></p>\r
173 \r
174 <p>&nbsp;</p>\r
175 \r
176 <script type="text/javascript" language="javascript1.2">\r
177 <!--\r
178 if (window.writeIntopicBar)\r
179         writeIntopicBar(0);\r
180 //-->\r
181 </script>\r
182 </body>\r
183 </html>\r