Salome HOME
PAL12557: Documentation for scripts is not up to date.
[modules/geom.git] / doc / salome / gui / GEOM / local_coordinate_system.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>Local Coordinate System</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:16px; height:16px; border-style:none; }\r
18 p.whs2 { font-size:12pt; }\r
19 p.whs3 { font-weight:bold; font-size:14pt; margin-left:40px; }\r
20 img_whs4 { border:none; width:312px; height:391px; float:none; border-style:none; }\r
21 p.whs5 { font-weight:bold; font-size:14pt; }\r
22 p.whs6 { font-size:12pt; font-weight:normal; }\r
23 img_whs7 { border:none; width:312px; height:289px; float:none; border-style:none; }\r
24 p.whs8 { font-size:12pt; font-weight:bold; }\r
25 img_whs9 { border:none; width:312px; height:359px; float:none; border-style:none; }\r
26 p.whs10 { font-weight:bold; text-indent:-40px; font-size:14pt; margin-left:40px; }\r
27 p.whs11 { font-weight:bold; margin-left:80px; text-indent:-80px; font-size:12pt; }\r
28 p.whs12 { font-weight:bold; text-indent:-80px; font-size:12pt; margin-left:120px; }\r
29 img_whs13 { border:none; width:200px; height:219px; border-style:none; }\r
30 -->\r
31 </style><script type="text/javascript" language="JavaScript">\r
32 <!--\r
33 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
34 {\r
35   var strNSS = "<style type='text/css'>";\r
36   strNSS += "p.whs10 {text-indent:1pt; }";\r
37   strNSS += "p.whs11 {text-indent:1pt; }";\r
38   strNSS += "p.whs12 {text-indent:1pt; }";\r
39   strNSS +="</style>";\r
40   document.write(strNSS);\r
41 }\r
42 //-->\r
43 </script>\r
44 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
45 <!--\r
46 function reDo() {\r
47   if (innerWidth != origWidth || innerHeight != origHeight)\r
48      location.reload();\r
49 }\r
50 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
51         origWidth = innerWidth;\r
52         origHeight = innerHeight;\r
53         onresize = reDo;\r
54 }\r
55 onerror = null; \r
56 //-->\r
57 </script>\r
58 <style type="text/css">\r
59 <!--\r
60 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
61 p.WebHelpNavBar { text-align:right; }\r
62 -->\r
63 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
64 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
65 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
66 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
67 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
68 <script type="text/javascript" language="javascript1.2">\r
69 <!--\r
70 if (window.gbWhTopic)\r
71 {\r
72         if (window.setRelStartPage)\r
73         {\r
74         addTocInfo("Geometry module\nCreating geometrical objects\nCreating Basic Geometric Objects\nLocal Coordinate System");\r
75 addButton("show",BTN_IMG,"Show","","","","",0,0,"whd_show0.gif","whd_show2.gif","whd_show1.gif");\r
76 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"whd_hide0.gif","whd_hide2.gif","whd_hide1.gif");\r
77 \r
78         }\r
79 \r
80 \r
81         if (window.setRelStartPage)\r
82         {\r
83         setRelStartPage("index.htm");\r
84 \r
85                 autoSync(1);\r
86                 sendSyncInfo();\r
87                 sendAveInfoOut();\r
88         }\r
89 \r
90 }\r
91 else\r
92         if (window.gbIE4)\r
93                 document.location.reload();\r
94 //-->\r
95 </script>\r
96 </head>\r
97 <body><script type="text/javascript" language="javascript1.2">\r
98 <!--\r
99 if (window.writeIntopicBar)\r
100         writeIntopicBar(4);\r
101 //-->\r
102 </script>\r
103 <h1><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><img src="image35.gif" width="16px" height="16px" border="0" class="img_whs1"></font></span>Local Coordinate \r
104  System</h1>\r
105 \r
106 <p>To create a <span style="font-weight: bold;"><B>Local Coordinate System</B></span> \r
107  in the <span style="font-weight: bold;"><B>Main Menu</B></span> select <span \r
108  style="font-weight: bold;"><B>New Entity - &gt; Basic - &gt; Local Coordinate \r
109  System</B></span></p>\r
110 \r
111 <p class="whs2">There are three algorithms to choose from.</p>\r
112 \r
113 <p class="whs2">&nbsp;</p>\r
114 \r
115 <p class="whs2">Firstly, you can define the values of X, Y, \r
116  and Z coordinates of origin and the directions of X and Y axes directly \r
117  in the menu.</p>\r
118 \r
119 <p class="whs2"><span style="font-weight: bold;"><B>TUI command:</B></span> \r
120  <span style="font-style: italic;"><I>geompy.MakeMarker(OX, OY, OZ, XDX, XDY, \r
121  XDZ, YDX, YDY, YDZ)</I></span>, where OX, OY, OZ are coordinates of the origin \r
122  of LCS, XDX, XDY, XDZ is a vector of OX &nbsp;direction \r
123  of the LCS and YDX, YDY, YDZ is a a vector of OY direction of the LCS.</p>\r
124 \r
125 <p class="whs2"><b style="font-weight: bold;">Arguments:</b> \r
126  Name + Coordinates of origin, X axis direction, Y axis direction.</p>\r
127 \r
128 <p class="whs2">&nbsp;</p>\r
129 \r
130 <p class="whs3"><img src="pics/neo-localcs1.png" x-maintain-ratio="TRUE" width="312px" height="391px" border="0" class="img_whs4"></p>\r
131 \r
132 <p class="whs5">&nbsp;</p>\r
133 \r
134 <p class="whs6">Secondly, you can simply \r
135  select a point in the object browser or 3D viewer, in this case the coordinates \r
136  of origin are automatically filled in with the coordinates of the selected \r
137  point and X and Y axes direction will be parallel to the X and Y direction \r
138  of the Global CS. &nbsp;</p>\r
139 \r
140 <p class="whs6"><b style="font-weight: bold;">Arguments: \r
141  </b>Name + reference object.</p>\r
142 \r
143 <p class="whs6">&nbsp;</p>\r
144 \r
145 <p class="whs3"><img src="pics/neo-localcs2.png" x-maintain-ratio="TRUE" width="312px" height="289px" border="0" class="img_whs7"></p>\r
146 \r
147 <p class="whs2">&nbsp;</p>\r
148 \r
149 <p class="whs2">The last algorithm also presumes that you select \r
150  a point in the object browser or 3D viewer, but in this case you define \r
151  X and Y axes direction yourselves. </p>\r
152 \r
153 <p class="whs8"><b style="font-weight: bold;">Arguments:</b> \r
154  <span style="font-weight: normal;">Name + 1 point of origin + X axis direction, \r
155  Y axis direction.</span></p>\r
156 \r
157 <p class="whs2">&nbsp;</p>\r
158 \r
159 <p class="whs3"><img src="pics/neo-localcs3.png" x-maintain-ratio="TRUE" width="312px" height="359px" border="0" class="img_whs9"></p>\r
160 \r
161 <p class="whs2">&nbsp;</p>\r
162 \r
163 <p class="whs2">Press «OK» or «Apply» button to create an LCS \r
164  at the location with the specified coordinates. The new object is shown \r
165  in the Object Browser and in 3D viewer.</p>\r
166 \r
167 <p class="whs10">&nbsp;</p>\r
168 \r
169 <p class="whs11">Example:</p>\r
170 \r
171 <p class="whs12"><img src="image145.jpg" width="200px" height="219px" border="0" class="img_whs13"></p>\r
172 \r
173 <p class="whs12">&nbsp;</p>\r
174 \r
175 <p>&nbsp;</p>\r
176 \r
177 <script type="text/javascript" language="javascript1.2">\r
178 <!--\r
179 if (window.writeIntopicBar)\r
180         writeIntopicBar(0);\r
181 //-->\r
182 </script>\r
183 </body>\r
184 </html>\r