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