Salome HOME
*** empty log message ***
[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:157px; height:132px; border-style:none; }\r
21 img_whs5 { border:none; width:332px; height:222px; float:none; border-style:none; }\r
22 img_whs6 { border:none; border-style:none; width:257px; height:247px; float: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; }\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; }\r
27 h4.whs11 { margin-left:40px; }\r
28 img_whs12 { border:none; float:none; width:280px; height:258px; }\r
29 img_whs13 { border:none; width:251px; height:258px; float: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; }\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 SMESH 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_tetrahedrons">Tetrahedrons</a></p></li>\r
105         \r
106         <li class=kadov-p><p class="whs2"><a href="#Adding_hexahedrons">Hexahedrons</a></p></li>\r
107 </ul>\r
108 \r
109 <p>&nbsp;</p>\r
110 \r
111 <p class=TODO>To add a node or an element to your mesh:</p>\r
112 \r
113 <p class=TODO>&nbsp;</p>\r
114 \r
115 <p class="whs3">1. Select your mesh in the Object Browser \r
116  or in the 3D viewer.</p>\r
117 \r
118 <p class="whs3">&nbsp;</p>\r
119 \r
120 <p class="whs3">2. From the <span style="font-weight: bold;"><B>Modification \r
121  </B></span>menu choose the <span style="font-weight: bold;"><B>Add </B></span>item, \r
122  the following associated submenu will appear:</p>\r
123 \r
124 <p class="whs3">&nbsp;</p>\r
125 \r
126 <p class="whs3"><img src="../image73.gif" width="157px" height="132px" border="0" class="img_whs4"></p>\r
127 \r
128 <p class="whs3">&nbsp;</p>\r
129 \r
130 <p class="whs3">&nbsp;</p>\r
131 \r
132 <p class="whs3">From this submenu select the type of element \r
133  which you would like to add to your mesh. </p>\r
134 \r
135 <p class="whs3">&nbsp;</p>\r
136 \r
137 <p>&nbsp;&nbsp;<span style="font-weight: bold;"><B>See \r
138  Also</B></span> sample TUI Scripts of &nbsp;<a href="../modifying_meshes.htm#bookmark">Adding \r
139  Nodes and Elements</a><a href="../modifying_meshes.htm#bookmark8"> </a>operations. \r
140  &nbsp;</p>\r
141 \r
142 <p>&nbsp;</p>\r
143 \r
144 <h4><a name=Adding_nodes>Adding nodes</a></h4>\r
145 \r
146 <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;&nbsp;<img src="../pics/add_node.png" x-maintain-ratio="TRUE" width="257px" height="247px" border="0" class="img_whs6"></p>\r
147 \r
148 <p class="whs3">&nbsp;</p>\r
149 \r
150 <p class="whs3">In this dialog box set coordinates for your \r
151  node in the <span style="font-weight: bold;"><B>Coordinates </B></span>set of \r
152  fields and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
153  <span style="font-weight: bold;"><B>OK </B></span>button. Your node will be created:</p>\r
154 \r
155 <p class="whs3">&nbsp;</p>\r
156 \r
157 <h4><a name=Adding_edges>Adding edges</a></h4>\r
158 \r
159 <p>&nbsp;</p>\r
160 \r
161 <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
162 \r
163 <p class="whs3">&nbsp;</p>\r
164 \r
165 <p class="whs3">In this dialog box specify the nodes which \r
166  will form your edge by selecting them in the 3D viewer with pressed Shift \r
167  button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
168  <span style="font-weight: bold;"><B>OK </B></span>button. Your edge will be created:</p>\r
169 \r
170 <p class="whs3">&nbsp;</p>\r
171 \r
172 <h4><a name=Adding_triangles>Adding triangles</a></h4>\r
173 \r
174 <p class="whs3">&nbsp;</p>\r
175 \r
176 <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
177 \r
178 <p class="whs3">&nbsp;</p>\r
179 \r
180 <p class="whs3">In this dialog box specify the nodes which \r
181  will form your triangle by selecting them in the 3D viewer with pressed \r
182  Shift button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
183  <span style="font-weight: bold;"><B>OK </B></span>button. Your triangle will \r
184  be created:</p>\r
185 \r
186 <p class="whs3">&nbsp;</p>\r
187 \r
188 <h4><a name=Adding_quadrangles>Adding quadrangles</a></h4>\r
189 \r
190 <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
191 \r
192 <p class="whs3">In this dialog box specify the nodes which \r
193  will form your quadrangle by selecting them in the 3D viewer with pressed \r
194  Shift button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
195  <span style="font-weight: bold;"><B>OK </B></span>button. Your quadrangle will \r
196  be created:</p>\r
197 \r
198 <p class="whs3">&nbsp;</p>\r
199 \r
200 <h4><a name=Adding_quadrangles1>Adding polygons </a></h4>\r
201 \r
202 <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
203 \r
204 <p class="whs3">In this dialog box specify the nodes which \r
205  will form your polygon by selecting them in the 3D viewer with pressed \r
206  Shift button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
207  <span style="font-weight: bold;"><B>OK </B></span>button. </p>\r
208 \r
209 <p class="whs3">&nbsp;</p>\r
210 \r
211 <h4><a name=Adding_tetrahedrons>Adding tetrahedrons</a></h4>\r
212 \r
213 <p class="whs3"><img src="../pics/addtetrahedron.png" x-maintain-ratio="TRUE" width="332px" height="231px" border="0" class="img_whs7"></p>\r
214 \r
215 <p class="whs3">&nbsp;</p>\r
216 \r
217 <p class="whs3">In this dialog box specify the nodes which \r
218  will form your tetrahedron by selecting them in the 3D viewer with pressed \r
219  Shift button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
220  <span style="font-weight: bold;"><B>OK </B></span>button. Your tetrahedron will \r
221  be created:</p>\r
222 \r
223 <p class="whs3">&nbsp;</p>\r
224 \r
225 <p class="whs3"><img src="../image70.jpg" width="350px" height="184px" border="0" class="img_whs14"></p>\r
226 \r
227 <h4><a name=Adding_hexahedrons>Adding hexahedrons</a></h4>\r
228 \r
229 <p class="whs3"><img src="../pics/addhexahedron.png" x-maintain-ratio="TRUE" width="332px" height="231px" border="0" class="img_whs7"></p>\r
230 \r
231 <p class="whs3">&nbsp;</p>\r
232 \r
233 <p class="whs3">In this dialog box specify the nodes which \r
234  will form your hexahedron by selecting them in the 3D viewer with pressed \r
235  Shift button and click the <span style="font-weight: bold;"><B>Apply </B></span>or \r
236  <span style="font-weight: bold;"><B>OK </B></span>button. Your hexahedron will \r
237  be created:</p>\r
238 \r
239 <p class="whs3">&nbsp;</p>\r
240 \r
241 <p class="whs3">&nbsp;</p>\r
242 \r
243 <p class="whs3"><img src="../image71.jpg" width="350px" height="184px" border="0" class="img_whs14"></p>\r
244 \r
245 <p class="whs3">&nbsp;</p>\r
246 \r
247 <h4><a name=Adding_hexahedrons1>Adding polyhedrons</a></h4>\r
248 \r
249 <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
250 \r
251 <p class="whs3">&nbsp;</p>\r
252 \r
253 <p class="whs3">There are two different ways to add polyhedral \r
254  volumes. </p>\r
255 \r
256 <p class="whs3">If you select <span style="font-weight: bold;"><B>Node</B></span> \r
257  as <span style="font-weight: bold;"><B>Elements Type</B></span> you will specify \r
258  the nodes which will form the faces of your polyhedron by selecting the \r
259  nodes in the 3D viewer with pressed Shift button and clicking the <span \r
260  style="font-weight: bold;"><B>Add</B></span> button to add the face in the list \r
261  of Faces by Nodes, which will form your polyhedron. Note, that it could \r
262  be very useful to toggle Polyhedron Preview checkbox to see the results \r
263  of your selection. </p>\r
264 \r
265 <p class="whs3">The second way is somewhat simpler, however, \r
266  there are cases when it does not provide you with the necessary level \r
267  of precision. If you select <span style="font-weight: bold;"><B>Face</B></span> \r
268  as <span style="font-weight: bold;"><B>Elements Type</B></span>, you will be \r
269  able to select the faces &nbsp;which \r
270  will form your polyhedron in the 3D viewer with pressed Shift button. \r
271  If you've managed to </p>\r
272 \r
273 <p class="whs3">obtain the necessary result, click the <span \r
274  style="font-weight: bold;"><B>Apply </B></span>or <span style="font-weight: bold;"><B>OK \r
275  </B></span><span style="margin-left: 40px;">button. Your hexahedron will be \r
276  created.</span></p>\r
277 \r
278 <p class="whs3">&nbsp;</p>\r
279 \r
280 <p>&nbsp;</p>\r
281 \r
282 <p class="whs3">&nbsp;</p>\r
283 \r
284 <script type="text/javascript" language="javascript1.2">\r
285 <!--\r
286 if (window.writeIntopicBar)\r
287         writeIntopicBar(0);\r
288 //-->\r
289 </script>\r
290 </body>\r
291 </html>\r