Salome HOME
Merge from OCC_development_generic_2006
[modules/geom.git] / doc / salome / gui / GEOM / point.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>Point</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 img_whs3 { border:none; width:312px; height:332px; float:none; border-style:none; }\r
20 img_whs4 { border:none; width:312px; height:473px; float:none; border-style:none; }\r
21 p.whs5 { font-size:12pt; margin-left:120px; }\r
22 p.whs6 { font-size:12pt; margin-left:0px; }\r
23 p.whs7 { font-size:12pt; font-style:italic; margin-left:0px; }\r
24 img_whs8 { border:none; width:312px; height:421px; float:none; border-style:none; }\r
25 p.whs9 { font-size:12pt; color:#000000; }\r
26 p.whs10 { color:#808080; font-size:12pt; }\r
27 img_whs11 { border:none; width:354px; height:326px; float:none; border-style:none; }\r
28 p.whs12 { color:#808080; font-size:12pt; margin-left:40px; }\r
29 -->\r
30 </style><script type="text/javascript" language="JavaScript">\r
31 <!--\r
32 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
33 {\r
34   var strNSS = "<style type='text/css'>";\r
35   strNSS += "p.whs6 {margin-left:1pt; }";\r
36   strNSS += "p.whs7 {margin-left:1pt; }";\r
37   strNSS +="</style>";\r
38   document.write(strNSS);\r
39 }\r
40 //-->\r
41 </script>\r
42 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
43 <!--\r
44 function reDo() {\r
45   if (innerWidth != origWidth || innerHeight != origHeight)\r
46      location.reload();\r
47 }\r
48 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
49         origWidth = innerWidth;\r
50         origHeight = innerHeight;\r
51         onresize = reDo;\r
52 }\r
53 onerror = null; \r
54 //-->\r
55 </script>\r
56 <style type="text/css">\r
57 <!--\r
58 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
59 -->\r
60 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
61 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
62 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
63 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
64 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
65 </head>\r
66 <body><script type="text/javascript" language="javascript1.2">\r
67 <!--\r
68 if (window.gbWhTopic)\r
69 {\r
70         if (window.addTocInfo)\r
71         {\r
72         addTocInfo("GEOM module\nCreating geometrical objects\nCreation of Basic Geometric Objects\nPoint");\r
73 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
74 \r
75         }\r
76         if (window.writeBtnStyle)\r
77                 writeBtnStyle();\r
78 \r
79         if (window.writeIntopicBar)\r
80                 writeIntopicBar(1);\r
81 \r
82         if (window.setRelStartPage)\r
83         {\r
84         setRelStartPage("geom.htm");\r
85 \r
86                 autoSync(1);\r
87                 sendSyncInfo();\r
88                 sendAveInfoOut();\r
89         }\r
90 }\r
91 else\r
92         if (window.gbIE4)\r
93                 document.location.reload();\r
94 //-->\r
95 </script>\r
96 <h1><b style="font-weight: bold;"><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image27.gif" width="20px" height="20px" border="0" class="img_whs1"> </font></span></b>Point</h1>\r
97 \r
98 <p>To create a <span style="font-weight: bold;"><B>Point</B></span> in the <span \r
99  style="font-weight: bold;"><B>Main Menu</B></span> select <span style="font-weight: bold;"><B>New \r
100  Entity - &gt; Basic - &gt; Point</B></span></p>\r
101 \r
102 <p>&nbsp;</p>\r
103 \r
104 <p>There are three algorithms to <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">create \r
105  a </font></span><span style="font-size: 12pt; font-weight: bold;"><font size=3 style="font-size:12pt;"><B>Point</B></font></span><span \r
106  style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> in the 3D space.</font></span></p>\r
107 \r
108 <p class="whs2"><b style="font-weight: bold;"><span style="font-weight: normal;">Each \r
109  time the</span> Result <span style="font-weight: normal;">of the operation \r
110  will be a</span></b> GEOM_Object (vertex).</p>\r
111 \r
112 <p class="whs2">&nbsp;</p>\r
113 \r
114 <p class="whs2"><b style="font-weight: bold;"><span style="font-weight: normal;">Firstly, \r
115  we can define a point by setting its X, Y and Z </span><span style="font-weight: bold;"><B>C</B></span></b><b><span \r
116  style="font-weight: bold;"><B>oordinates</B></span><span style="font-weight: normal;">.</span> \r
117  </b></p>\r
118 \r
119 <p class="whs2"><b style="font-weight: bold;">TUI Command :</b> \r
120  &nbsp;&nbsp;<span style="font-style: italic;"><I>g</I></span>eompy.MakeVertex(X, \r
121  Y, Z) </p>\r
122 \r
123 <p class="whs2"><b style="font-weight: bold;">Arguments: </b>Name \r
124  <b><span style="font-weight: normal;">(Vertex_n by default) </span></b>+ \r
125  X, Y and Z coordinates of the point.</p>\r
126 \r
127 <p class="whs2">&nbsp;</p>\r
128 \r
129 <p class="whs2"><img src="pics/point1.png" x-maintain-ratio="TRUE" width="312px" height="332px" border="0" class="img_whs3"></p>\r
130 \r
131 <p class="whs2">&nbsp;</p>\r
132 \r
133 <p class="whs2">Secondly, &nbsp;we \r
134  can define a point by a <span style="font-weight: bold;"><B>Reference</B></span> \r
135  to another point and the shift of the coordinates of the new point regarding \r
136  the coordinates of the old one. </p>\r
137 \r
138 <p class="whs2"><b style="font-weight: bold;">TUI Command :</b> \r
139  &nbsp;&nbsp;<span style="font-style: italic;"><I>geompy.MakeVertexWithRef(Reference, \r
140  X, Y, Z).</I></span></p>\r
141 \r
142 <p class="whs2"><b style="font-weight: bold;">Arguments: </b>Name \r
143  + 1 reference point + 3 coordinates defining the position of this point \r
144  regarding the reference one.</p>\r
145 \r
146 <p class="whs2">&nbsp;</p>\r
147 \r
148 <p class="whs2"><span style="font-style: italic;"><I><img src="pics/neo-point2.png" x-maintain-ratio="TRUE" width="312px" height="473px" border="0" class="img_whs4"></I></span></p>\r
149 \r
150 <p class="whs5">&nbsp;</p>\r
151 \r
152 <p class="whs6">Finally, we can define a \r
153  point by an <span style="font-weight: bold;"><B>Edge</B></span> and a <span style="font-weight: bold;"><B>Parameter</B></span> \r
154  &nbsp;indicating \r
155  its position on the Edge. For example, 0.5 means that the point is located \r
156  in the middle of the edge.<span style="font-style: italic;"> <I></I></span></p>\r
157 \r
158 <p class="whs7"><span style="font-style: italic;"><I><b style="font-weight: bold; font-style: normal;">TUI \r
159  Command :</b> &nbsp;&nbsp;geompy.MakeVertexOnCurve(Edge, \r
160  Parameter).</I></span></p>\r
161 \r
162 <p class="whs2"><b style="font-weight: bold;">Arguments: N</b>ame \r
163  + 1 edge &nbsp;+ \r
164  1 Parameter defining the position of the point on the given edge.</p>\r
165 \r
166 <p class="whs2">&nbsp;</p>\r
167 \r
168 <p class="whs2"><span style="font-style: italic;"><I><b style="font-weight: bold;"><img src="pics/point3.png" x-maintain-ratio="TRUE" width="312px" height="421px" border="0" class="img_whs8"></b></I></span></p>\r
169 \r
170 <p class="whs2">&nbsp;</p>\r
171 \r
172 <p class="whs9"><span style="font-style: italic;"><I><span \r
173  style="font-size: 12pt; color: #000000;"><font size=3 color=black style="font-size:12.000000pt;"><b style="font-weight: bold;"><b \r
174  style="font-weight: bold;">E</b>xample:</b></font></span></I></span></p>\r
175 \r
176 <p class="whs10">&nbsp;</p>\r
177 \r
178 <p class="whs2"><span style="font-style: italic;"><I><b style="font-weight: bold;"><img src="pics/points.png" x-maintain-ratio="TRUE" width="354px" height="326px" border="0" class="img_whs11"></b></I></span></p>\r
179 \r
180 <p class="whs12">&nbsp;</p>\r
181 \r
182 <p class="whs2">Our <span style="font-weight: bold;"><B>TUI Scripts</B></span> \r
183  provide you with useful examples of creation of <a href="basic_geometrical_objects.htm#bookmark" style="font-style: normal;">Basic \r
184  Geometric Objects</a>. </p>\r
185 \r
186 <script type="text/javascript" language="javascript1.2">\r
187 <!--\r
188 if (window.writeIntopicBar)\r
189         writeIntopicBar(0);\r
190 //-->\r
191 </script>\r
192 </body>\r
193 </html>\r