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