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