Salome HOME
PAL 14158 Add the Octree and OctreeNode classes to accelerate detection of close...
[modules/smesh.git] / doc / salome / gui / SMESH / files / adding_nodes_and_elements.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>Adding nodes and elements</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 ul.whs1 { list-style:disc; }\r
18 p.whs2 { font-weight:bold; }\r
19 p.whs3 { margin-left:40px; }\r
20 img_whs4 { border:none; width:155px; height:189px; border-style:none; }\r
21 img_whs5 { border:none; width:332px; height:222px; float:none; border-style:none; }\r
22 img_whs6 { border:none; width:257px; height:247px; float:none; border-style:none; }\r
23 img_whs7 { border:none; width:332px; height:231px; float:none; border-style:none; }\r
24 img_whs8 { border:none; width:260px; height:255px; float:none; border-style:none; }\r
25 img_whs9 { border:none; width:332px; height:257px; float:none; border-style:none; }\r
26 img_whs10 { border:none; width:275px; height:254px; float:none; border-style:none; }\r
27 h4.whs11 { margin-left:40px; }\r
28 img_whs12 { border:none; float:none; width:280px; height:258px; border-style:none; }\r
29 img_whs13 { border:none; width:251px; height:258px; float:none; border-style:none; }\r
30 img_whs14 { border:none; width:350px; height:184px; border-style:none; }\r
31 img_whs15 { border:none; width:332px; height:430px; float:none; border-style:none; }\r
32 img_whs16 { border:none; width:369px; height:360px; float:none; border-style:none; }\r
33 -->\r
34 </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
35 <!--\r
36 function reDo() {\r
37   if (innerWidth != origWidth || innerHeight != origHeight)\r
38      location.reload();\r
39 }\r
40 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
41         origWidth = innerWidth;\r
42         origHeight = innerHeight;\r
43         onresize = reDo;\r
44 }\r
45 onerror = null; \r
46 //-->\r
47 </script>\r
48 <style type="text/css">\r
49 <!--\r
50 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
51 p.WebHelpNavBar { text-align:right; }\r
52 -->\r
53 </style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>\r
54 <script type="text/javascript" language="javascript" src="../whver.js"></script>\r
55 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>\r
56 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>\r
57 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>\r
58 <script type="text/javascript" language="javascript1.2">\r
59 <!--\r
60 if (window.gbWhTopic)\r
61 {\r
62         if (window.setRelStartPage)\r
63         {\r
64         addTocInfo("MESH module\nModifying meshes\nAdding nodes and elements");\r
65 addButton("show",BTN_IMG,"Show","","","","",0,0,"../whd_show0.gif","../whd_show2.gif","../whd_show1.gif");\r
66 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"../whd_hide0.gif","../whd_hide2.gif","../whd_hide1.gif");\r
67 \r
68         }\r
69 \r
70 \r
71         if (window.setRelStartPage)\r
72         {\r
73         setRelStartPage("../index.htm");\r
74 \r
75                 autoSync(1);\r
76                 sendSyncInfo();\r
77                 sendAveInfoOut();\r
78         }\r
79 \r
80 }\r
81 else\r
82         if (window.gbIE4)\r
83                 document.location.reload();\r
84 //-->\r
85 </script>\r
86 </head>\r
87 <body><script type="text/javascript" language="javascript1.2">\r
88 <!--\r
89 if (window.writeIntopicBar)\r
90         writeIntopicBar(4);\r
91 //-->\r
92 </script>\r
93 <h1>Adding nodes and elements</h1>\r
94 \r
95 <p>In MESH you can add to your mesh different elements such as:</p>\r
96 \r
97 <p>&nbsp;</p>\r
98 \r
99 <ul type="disc" class="whs1">\r
100         \r
101         <li class=kadov-p><p class="whs2"><a href="#Adding_nodes">Nodes</a></p></li>\r
102         \r
103         <li class=kadov-p><p class="whs2"><a href="#Adding_edges">Edges</a></p></li>\r
104         \r
105         <li class=kadov-p><p class="whs2"><a href="#Adding_triangles">Triangles</a></p></li>\r
106         \r
107         <li class=kadov-p><p class="whs2"><a href="#Adding_quadrangles">Quadrangles</a></p></li>\r
108         \r
109         <li class=kadov-p><p class="whs2"><a href="#Adding_polygons">Polygons</a></p></li>\r
110         \r
111         <li class=kadov-p><p class="whs2"><a href="#Adding_tetrahedrons">Tetrahedrons</a></p></li>\r
112         \r
113         <li class=kadov-p><p class="whs2"><a href="#Adding_hexahedrons">Hexahedrons</a></p></li>\r
114         \r
115         <li class=kadov-p><p class="whs2"><a href="#Adding_polyhedrons">Polyhedrons</a></p></li>\r
116 </ul>\r
117 \r
118 <p>&nbsp;</p>\r
119 \r
120 <p class=TODO>To add a node or an element to your mesh:</p>\r
121 \r
122 <p class=TODO>&nbsp;</p>\r
123 \r
124 <p class="whs3">1. Select your mesh in the Object Browser \r
125  or in the 3D viewer.</p>\r
126 \r
127 <p class="whs3">&nbsp;</p>\r
128 \r
129 <p class="whs3">2. From the <span style="font-weight: bold;"><B>Modification \r
130  </B></span>menu choose the <span style="font-weight: bold;"><B>Add </B></span>item, \r
131  the following associated submenu will appear:</p>\r
132 \r
133 <p class="whs3">&nbsp;</p>\r
134 \r
135 <p class="whs3"><img src="../image146.gif" width="155px" height="189px" border="0" class="img_whs4"></p>\r
136 \r
137 <p class="whs3">&nbsp;</p>\r
138 \r
139 <p class="whs3">From this submenu select the type of element \r
140  which you would like to add to your mesh. </p>\r
141 \r
142 <p class="whs3">&nbsp;</p>\r
143 \r
144 <p>&nbsp;&nbsp;<span style="font-weight: bold;"><B>See \r
145  Also</B></span> sample TUI Scripts of &nbsp;<a href="../modifying_meshes.htm#bookmark">Adding \r
146  Nodes and Elements</a><a href="../modifying_meshes.htm#bookmark8"> </a>operations. \r
147  &nbsp;</p>\r
148 \r
149 <p>&nbsp;</p>\r
150 \r
151 <h4><a name=Adding_nodes>Adding nodes</a></h4>\r
152 \r
153 <p class="whs3"><img src="../pics/addnode.png" x-maintain-ratio="TRUE" width="332px" height="222px" border="0" class="img_whs5"> &nbsp;&nbsp;&nbsp;&nbsp;</p>\r
154 \r
155 <p class="whs3">&nbsp;</p>\r
156 \r
157 <p class="whs3">&nbsp;<img src="../pics/add_node.png" x-maintain-ratio="TRUE" width="257px" height="247px" border="0" class="img_whs6"></p>\r
158 \r
159 <p class="whs3">&nbsp;</p>\r
160 \r
161 <p class="whs3">In this dialog box set coordinates for your \r
162  node in the <span style="font-weight: bold;"><B>Coordinates </B></span>set of \r
163  fields and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
164  <span style="font-weight: bold;"><B>OK </B></span>button. Your node will be created:</p>\r
165 \r
166 <p class="whs3">&nbsp;</p>\r
167 \r
168 <h4><a name=Adding_edges>Adding edges</a></h4>\r
169 \r
170 <p>&nbsp;</p>\r
171 \r
172 <p class="whs3"><img src="../pics/addedge.png" x-maintain-ratio="TRUE" width="332px" height="231px" border="0" class="img_whs7"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../pics/add_edge.png" x-maintain-ratio="TRUE" width="260px" height="255px" border="0" class="img_whs8"></p>\r
173 \r
174 <p class="whs3">&nbsp;</p>\r
175 \r
176 <p class="whs3">In this dialog box specify the nodes which \r
177  will form your edge by selecting them in the 3D viewer with pressed Shift \r
178  button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
179  <span style="font-weight: bold;"><B>OK </B></span>button. Your edge will be created:</p>\r
180 \r
181 <p class="whs3">&nbsp;</p>\r
182 \r
183 <h4><a name=Adding_triangles>Adding triangles</a></h4>\r
184 \r
185 <p class="whs3">&nbsp;</p>\r
186 \r
187 <p class="whs3"><img src="../pics/addtriangle.png" x-maintain-ratio="TRUE" width="332px" height="257px" border="0" class="img_whs9"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../pics/add_triangle.png" x-maintain-ratio="TRUE" width="275px" height="254px" border="0" class="img_whs10"></p>\r
188 \r
189 <p class="whs3">&nbsp;</p>\r
190 \r
191 <p class="whs3">In this dialog box specify the nodes which \r
192  will form your triangle by selecting them in the 3D viewer with pressed \r
193  Shift button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
194  <span style="font-weight: bold;"><B>OK </B></span>button. Your triangle will \r
195  be created:</p>\r
196 \r
197 <p class="whs3">&nbsp;</p>\r
198 \r
199 <h4><a name=Adding_quadrangles>Adding quadrangles</a></h4>\r
200 \r
201 <h4 class="whs11"><img src="../pics/addquadrangle.png" x-maintain-ratio="TRUE" width="332px" height="257px" border="0" class="img_whs9"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../pics/add_quadrangle.png" x-maintain-ratio="TRUE" width="280px" height="258px" border="0" class="img_whs12"></h4>\r
202 \r
203 <p class="whs3">In this dialog box specify the nodes which \r
204  will form your quadrangle by selecting them in the 3D viewer with pressed \r
205  Shift button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
206  <span style="font-weight: bold;"><B>OK </B></span>button. Your quadrangle will \r
207  be created:</p>\r
208 \r
209 <p class="whs3">&nbsp;</p>\r
210 \r
211 <h4><a name=Adding_polygons>Adding polygons</a><a name=Adding_quadrangles1> \r
212  </a></h4>\r
213 \r
214 <h4 class="whs11"><img src="../pics/addpolygon.png" x-maintain-ratio="TRUE" width="332px" height="257px" border="0" class="img_whs9"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../pics/add_polygone.png" x-maintain-ratio="TRUE" width="251px" height="258px" border="0" class="img_whs13"></h4>\r
215 \r
216 <p class="whs3">In this dialog box specify the nodes which \r
217  will form your polygon by selecting them in the 3D viewer with pressed \r
218  Shift button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
219  <span style="font-weight: bold;"><B>OK </B></span>button. </p>\r
220 \r
221 <p class="whs3">&nbsp;</p>\r
222 \r
223 <h4><a name=Adding_tetrahedrons>Adding tetrahedrons</a></h4>\r
224 \r
225 <p class="whs3"><img src="../pics/addtetrahedron.png" x-maintain-ratio="TRUE" width="332px" height="231px" border="0" class="img_whs7"></p>\r
226 \r
227 <p class="whs3">&nbsp;</p>\r
228 \r
229 <p class="whs3">In this dialog box specify the nodes which \r
230  will form your tetrahedron by selecting them in the 3D viewer with pressed \r
231  Shift button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
232  <span style="font-weight: bold;"><B>OK </B></span>button. Your tetrahedron will \r
233  be created:</p>\r
234 \r
235 <p class="whs3">&nbsp;</p>\r
236 \r
237 <p class="whs3"><img src="../image70.jpg" width="350px" height="184px" border="0" class="img_whs14"></p>\r
238 \r
239 <h4><a name=Adding_hexahedrons>Adding hexahedrons</a></h4>\r
240 \r
241 <p class="whs3"><img src="../pics/addhexahedron.png" x-maintain-ratio="TRUE" width="332px" height="231px" border="0" class="img_whs7"></p>\r
242 \r
243 <p class="whs3">&nbsp;</p>\r
244 \r
245 <p class="whs3">In this dialog box specify the nodes which \r
246  will form your hexahedron by selecting them in the 3D viewer with pressed \r
247  Shift button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
248  <span style="font-weight: bold;"><B>OK </B></span>button. Your hexahedron will \r
249  be created:</p>\r
250 \r
251 <p class="whs3">&nbsp;</p>\r
252 \r
253 <p class="whs3">&nbsp;</p>\r
254 \r
255 <p class="whs3"><img src="../image71.jpg" width="350px" height="184px" border="0" class="img_whs14"></p>\r
256 \r
257 <p class="whs3">&nbsp;</p>\r
258 \r
259 <h4><a name=Adding_polyhedrons>Adding polyhedrons</a></h4>\r
260 \r
261 <p class="whs3"><img src="../pics/a-createpolyhedralvolume.png" x-maintain-ratio="TRUE" width="332px" height="430px" border="0" class="img_whs15"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../pics/add_polyhedron.png" x-maintain-ratio="TRUE" width="369px" height="360px" border="0" class="img_whs16"></p>\r
262 \r
263 <p class="whs3">&nbsp;</p>\r
264 \r
265 <p class="whs3">There are two different ways to add polyhedral \r
266  volumes. </p>\r
267 \r
268 <p class="whs3">If you select <span style="font-weight: bold;"><B>Node</B></span> \r
269  as <span style="font-weight: bold;"><B>Elements Type</B></span> you will specify \r
270  the nodes which will form the faces of your polyhedron by selecting the \r
271  nodes in the 3D viewer with pressed Shift button and clicking the <span \r
272  style="font-weight: bold;"><B>Add</B></span> button to add the face in the list \r
273  of Faces by Nodes, which will form your polyhedron. Note, that it could \r
274  be very useful to toggle Polyhedron Preview checkbox to see the results \r
275  of your selection. </p>\r
276 \r
277 <p class="whs3">The second way is somewhat simpler, however, \r
278  there are cases when it does not provide you with the necessary level \r
279  of precision. If you select <span style="font-weight: bold;"><B>Face</B></span> \r
280  as <span style="font-weight: bold;"><B>Elements Type</B></span>, you will be \r
281  able to select the faces &nbsp;which \r
282  will form your polyhedron in the 3D viewer with pressed Shift button. \r
283  If you've managed to </p>\r
284 \r
285 <p class="whs3">obtain the necessary result, click the <span \r
286  style="font-weight: bold;"><B>Apply </B></span>or <span style="font-weight: bold;"><B>OK \r
287  </B></span><span style="margin-left: 40px;">button. Your hexahedron will be \r
288  created.</span></p>\r
289 \r
290 <p class="whs3">&nbsp;</p>\r
291 \r
292 <p>&nbsp;</p>\r
293 \r
294 <p class="whs3">&nbsp;</p>\r
295 \r
296 <script type="text/javascript" language="javascript1.2">\r
297 <!--\r
298 if (window.writeIntopicBar)\r
299         writeIntopicBar(0);\r
300 //-->\r
301 </script>\r
302 </body>\r
303 </html>\r