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