Salome HOME
Update GEOM documentation.
[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 p.whs4 { font-size:12pt; margin-left:120px; }\r
21 img_whs5 { border:none; width:312px; height:473px; float:none; border-style:none; }\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 </span><span style="font-weight: normal;">and \r
116  setting its X, Y and Z </span><span style="font-weight: bold;"><B>C</B></span></b><b><span \r
117  style="font-weight: bold;"><B>oordinates</B></span><span style="font-weight: normal;">.</span> \r
118  </b></p>\r
119 \r
120 <p class="whs2"><b style="font-weight: bold;">TUI Command :</b> \r
121  &nbsp;&nbsp;<span style="font-style: italic;"><I>g</I></span>eompy.MakeVertex(X, \r
122  Y, Z) </p>\r
123 \r
124 <p class="whs2"><b style="font-weight: bold;">Arguments: </b>Name \r
125  <b><span style="font-weight: normal;">(Vertex_n by default) </span></b>+ \r
126  X, Y and Z coordinates of the point.</p>\r
127 \r
128 <p class="whs2">&nbsp;</p>\r
129 \r
130 <p class="whs2"><img src="pics/point1.png" x-maintain-ratio="TRUE" width="312px" height="332px" border="0" class="img_whs3"></p>\r
131 \r
132 <p class="whs2">&nbsp;</p>\r
133 \r
134 <p class="whs2">Secondly, &nbsp;we \r
135  can define a point by a <span style="font-weight: bold;"><B>Reference</B></span> \r
136  to another point and the shift of the coordinates of the new point regarding \r
137  the coordinates of the old one. </p>\r
138 \r
139 <p class="whs2"><b style="font-weight: bold;">TUI Command :</b> \r
140  &nbsp;&nbsp;<span style="font-style: italic;"><I>g</I></span><span \r
141  style="margin-left: 120px;">eompy.MakeVertexWithRef(Reference, X, Y, Z)</span></p>\r
142 \r
143 <p class="whs2"><span style="margin-left: 120px;"><b style="font-weight: bold;">A</span>rguments: \r
144  </b>Name + 1 reference point + 3 coordinates defining the position of \r
145  this point regarding the reference one</p>\r
146 \r
147 <p class="whs4">&nbsp;</p>\r
148 \r
149 <p class="whs2"><span style="font-size: 12pt; margin-left: 120px;"><font size=3 style="font-size:12pt;"><img src="pics/neo-point2.png" x-maintain-ratio="TRUE" width="312px" height="473px" border="0" class="img_whs5"></font></span></p>\r
150 \r
151 <p class="whs4">&nbsp;</p>\r
152 \r
153 <p class="whs6">Finally, we can define a \r
154  point by an <span style="font-weight: bold;"><B>Edge</B></span> and a <span style="font-weight: bold;"><B>Parameter</B></span> \r
155  &nbsp;indicating \r
156  its position on the Edge. For example, 0.5 means that the point is located \r
157  in the middle of the edge. </p>\r
158 \r
159 <p class="whs7"><b style="font-weight: bold; font-style: normal;">TUI \r
160  Command :</b> &nbsp;&nbsp;geompy.MakeVertexOnCurve(Edge, \r
161  Parameter) </p>\r
162 \r
163 <p class="whs2"><b style="font-weight: bold;">Arguments:<span> \r
164  N</b>ame + 1 edge &nbsp;+ \r
165  1 Parameter defining the position of the point on the given edge.</span></p>\r
166 \r
167 <p class="whs2">&nbsp;</p>\r
168 \r
169 <p class="whs2"><b style="font-weight: bold;"><img src="pics/point3.png" x-maintain-ratio="TRUE" width="312px" height="421px" border="0" class="img_whs8"></b></p>\r
170 \r
171 <p class="whs2">&nbsp;</p>\r
172 \r
173 <p class="whs9"><span style="font-size: 12pt; color: #000000;"><font size=3 color=black style="font-size:12.000000pt;"><b \r
174  style="font-weight: bold;"><b style="font-weight: bold;">E</b>xample:</b></font></span></p>\r
175 \r
176 <p class="whs10">&nbsp;</p>\r
177 \r
178 <p class="whs2"><b style="font-weight: bold;"><img src="pics/points.png" x-maintain-ratio="TRUE" width="354px" height="326px" border="0" class="img_whs11"></b></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">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