Salome HOME
Merge from BR_Dev_For_4_0 branch (from mergeto_BR_QT4_Dev_17Jan08 tag)
[modules/smesh.git] / doc / salome / gui / SMESH / files / constructing_meshes.htm
1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
2
3 <html>
4
5 <head>
6 <title>Constructing meshes</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 p.whs1 { margin-left:0px; }
18 ul.whs2 { list-style:disc; }
19 p.whs3 { margin-left:40px; }
20 img_whs4 { border:none; width:22px; height:24px; border-style:none; }
21 p.whs5 { margin-left:80px; }
22 img_whs6 { border:none; width:370px; height:296px; float:none; border-style:none; }
23 img_whs7 { border:none; width:173px; height:88px; border-style:none; }
24 img_whs8 { border:none; width:34px; height:29px; border-style:none; }
25 img_whs9 { border:none; width:29px; height:28px; border-style:none; }
26 img_whs10 { border:none; width:30px; height:29px; border-style:none; }
27 img_whs11 { border:none; width:232px; height:142px; border-style:none; float:right; }
28 img_whs12 { border:none; width:25px; height:24px; border-style:none; }
29 img_whs13 { border:none; width:457px; height:486px; float:none; border-style:none; }
30 img_whs14 { border:none; width:564px; height:402px; float:none; border-style:none; }
31 img_whs15 { border:none; width:260px; height:270px; float:none; border-style:none; }
32 -->
33 </style><script type="text/javascript" language="JavaScript">
34 <!--
35 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
36 {
37   var strNSS = "<style type='text/css'>";
38   strNSS += "p.whs1 {margin-left:1pt; }";
39   strNSS +="</style>";
40   document.write(strNSS);
41 }
42 //-->
43 </script>
44 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
45 <!--
46 function reDo() {
47   if (innerWidth != origWidth || innerHeight != origHeight)
48      location.reload();
49 }
50 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
51         origWidth = innerWidth;
52         origHeight = innerHeight;
53         onresize = reDo;
54 }
55 onerror = null; 
56 //-->
57 </script>
58 <style type="text/css">
59 <!--
60 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
61 p.WebHelpNavBar { text-align:right; }
62 -->
63 </style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>
64 <script type="text/javascript" language="javascript" src="../whver.js"></script>
65 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>
66 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>
67 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>
68 <script type="text/javascript" language="javascript1.2">
69 <!--
70 if (window.gbWhTopic)
71 {
72         if (window.setRelStartPage)
73         {
74         addTocInfo("MESH module\nCreating meshes\nConstructing meshes");
75 addButton("show",BTN_IMG,"Show","","","","",0,0,"../whd_show0.gif","../whd_show2.gif","../whd_show1.gif");
76 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"../whd_hide0.gif","../whd_hide2.gif","../whd_hide1.gif");
77
78         }
79
80
81         if (window.setRelStartPage)
82         {
83         setRelStartPage("../index.htm");
84
85                 autoSync(1);
86                 sendSyncInfo();
87                 sendAveInfoOut();
88         }
89
90 }
91 else
92         if (window.gbIE4)
93                 document.location.reload();
94 //-->
95 </script>
96 </head>
97 <body><script type="text/javascript" language="javascript1.2">
98 <!--
99 if (window.writeIntopicBar)
100         writeIntopicBar(4);
101 //-->
102 </script>
103 <h1>Constructing meshes</h1>
104
105 <p class="whs1">Construction of a mesh consists of:</p>
106
107 <p class="whs1">&nbsp;</p>
108
109 <ul type="disc" class="whs2">
110         
111         <li class=kadov-p><p class="whs1">Selecting a geometrical 
112  object for meshing</p></li>
113         
114         <li class=kadov-p><p class="whs1">Applying <a href="about_meshing_algorithms.htm">meshing 
115  algorithms</a> and <a href="about_hypotheses.htm">hypotheses</a> which 
116  will be used at computation of this mesh.</p></li>
117 </ul>
118
119 <p class="whs1">&nbsp;</p>
120
121 <p class=TODO>To construct a mesh:</p>
122
123 <p class="whs3">1. In the <span style="font-weight: bold;"><B>Mesh 
124  </B></span>menu select<span style="font-weight: bold;"><B> Create Mesh </B></span>or 
125  click <img src="../image32.gif" width="22px" height="24px" border="0" class="img_whs4"> button in the toolbar. The following dialog box will 
126  appear:</p>
127
128 <p class="whs3">&nbsp;</p>
129
130 <p class="whs5"><img src="../pics/createmesh-inv.png" x-maintain-ratio="TRUE" width="370px" height="296px" border="0" class="img_whs6"></p>
131
132 <p class="whs5">&nbsp;</p>
133
134 <p class="whs3">2. For example, you need to mesh a 3d object. 
135  </p>
136
137 <p class="whs3">First, type the name for your mesh in the 
138  &quot;Name&quot; box, by default, it is &quot;Mesh_1&quot;. Then select 
139  the object you wish to mesh in the Object Browser <img src="../image119.gif" width="173px" height="88px" border="0" class="img_whs7">and click 
140  the <img src="../image120.gif" width="34px" height="29px" border="0" class="img_whs8"> &quot;Add&quot; button. </p>
141
142 <p class="whs3">Now you can define 1d Algorithm and 1d Hypotheses, 
143  which will be applied to the edges of your object. (Note that any object 
144  has edges, even if their existence is not apparent, for example, a sphere 
145  has 4 edges). Click the &nbsp;<img src="../image121.gif" width="29px" height="28px" border="0" class="img_whs9"> button to add a hypothesis. Click the <img src="../image122.gif" width="30px" height="29px" border="0" class="img_whs10"> button 
146  to define values for the current hypothesis. The use of additional hypotheses 
147  is optional (i.e. you may leave &quot;None&quot; in this box). &nbsp;&nbsp;</p>
148
149 <p class="whs3">&nbsp;</p>
150
151 <p class="whs3">Proceed in the same way with 2d and 3d Algorithms 
152  and Hypotheses, note that the choice of hypotheses depends on the algorithm. 
153  There must be one Algorithm and one or several Hypotheses for each dimension 
154  of your object, otherwise you will not get any mesh at all. Of course, 
155  if you wish to mesh a face, which is a 2d object, you don't need to define 
156  3d Algorithm and Hypotheses. </p>
157
158 <p class="whs3">In the <span style="font-weight: bold;"><B>Object 
159  Browser</B></span> the structure of the new mesh will be displayed as follows:</p>
160
161 <p class="whs3"><img src="../image88.jpg" width="232px" height="142px" align="right" border="0" class="img_whs11">It contains:</p>
162
163 <ul type="disc" class="whs2">
164         
165         <li class=kadov-p><p class="whs3">a reference to the 
166  geometrical object on the basis of which the mesh has been constructed;</p></li>
167         
168         <li class=kadov-p><p class="whs3"><span style="font-weight: bold;"><B>Applied 
169  hypotheses </B></span>folder containing the references to the hypotheses applied 
170  to the construction of the mesh;</p></li>
171         
172         <li class=kadov-p><p class="whs3"><span style="font-weight: bold;"><B>Applied 
173  algorithms </B></span>folder containing the references to the algorithms applied 
174  to the construction of the mesh.</p></li>
175 </ul>
176
177 <p class="whs3">&nbsp;</p>
178
179 <p class="whs3">There is an alternative way to create a mesh 
180  on an object simply by clicking <span style="font-weight: bold;"><B>Assign 
181  a set of hypotheses </B></span>button and selecting between Automatic Tetrahedralization 
182  or Hexahedralization. &nbsp;The 
183  program will automatically generate a 3D mesh with the most appropriate 
184  settings. In the same way you can apply this functionality for meshing 
185  2D objects, in which case 3D algorithms are not applied. </p>
186
187 <p class="whs3">&nbsp;</p>
188
189 <p class="whs3">3. Now, when everything is ready, select 
190  your mesh in the <span style="font-weight: bold;"><B>Object Browser</B></span>. 
191  &nbsp;From the 
192  <span style="font-weight: bold;"><B>Mesh </B></span>menu select<span style="font-weight: bold;"><B> 
193  Compute </B></span>or click <img src="../image28.gif" width="25px" height="24px" border="0" class="img_whs12"> button of the toolbar. The Mesh 
194  Computation information box appears.</p>
195
196 <p class="whs3">&nbsp;</p>
197
198 <p class="whs3"><img src="../pics/meshcomputationsucceed.png" x-maintain-ratio="TRUE" width="457px" height="486px" border="0" class="img_whs13"></p>
199
200 <p class="whs3">&nbsp;</p>
201
202 <p class="whs3">If the mesh computation failed, the information 
203  about the cause of the failure is provided. </p>
204
205 <p class="whs3">&nbsp;</p>
206
207 <p class="whs3"><img src="../pics/meshcomputationfail.png" x-maintain-ratio="TRUE" width="564px" height="402px" border="0" class="img_whs14"> </p>
208
209 <p class="whs3">&nbsp;</p>
210
211 <p class="whs3">After you select the error, <span style="font-weight: bold;"><B>Show 
212  Subshape</B></span> button allows visualizing the mesh elements that cause 
213  it</p>
214
215 <p class="whs3">&nbsp;</p>
216
217 <p class="whs3"><img src="../pics/failed_computation.png" x-maintain-ratio="TRUE" width="260px" height="270px" border="0" class="img_whs15"> </p>
218
219 <p class="whs3">&nbsp;</p>
220
221 <p class="whs3"><span style="font-weight: bold;"><B>Publish 
222  Subshape</B></span> button allows importing it in a separate MED or UNV file. 
223  </p>
224
225 <p class="whs3">&nbsp;</p>
226
227 <p class="whs3">Consider trying a sample script for construction 
228  of a mesh from our <a href="../constructing_meshes.htm">TUI Scripts</a> 
229  section.</p>
230
231 <p class="whs3">&nbsp;</p>
232
233 <p>&nbsp;</p>
234
235 <script type="text/javascript" language="javascript1.2">
236 <!--
237 if (window.writeIntopicBar)
238         writeIntopicBar(0);
239 //-->
240 </script>
241 </body>
242 </html>