Salome HOME
PAL 14158 Add the Octree and OctreeNode classes to accelerate detection of close...
[modules/smesh.git] / doc / salome / gui / SMESH / aspect_ratio_3d.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>Aspect ratio 3D</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 img_whs1 { border:none; width:416px; height:385px; border-style:none; }\r
18 img_whs2 { border:none; width:30px; height:30px; float:none; border-style:none; }\r
19 ul.whs3 { list-style:disc; }\r
20 img_whs4 { border:none; width:258px; height:246px; border-style:none; float:left; }\r
21 img_whs5 { border:none; width:133px; height:56px; border-style:none; }\r
22 img_whs6 { border:none; width:425px; height:192px; border-style:none; }\r
23 img_whs7 { border:none; width:89px; height:32px; border-style:none; }\r
24 img_whs8 { border:none; width:569px; height:386px; float:none; border-style:none; }\r
25 p.whs9 { margin-left:40px; }\r
26 img_whs10 { border:none; width:24px; height:26px; border-style:none; }\r
27 p.whs11 { margin-left:0px; }\r
28 -->\r
29 </style><script type="text/javascript" language="JavaScript">\r
30 <!--\r
31 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
32 {\r
33   var strNSS = "<style type='text/css'>";\r
34   strNSS += "p.whs11 {margin-left:1pt; }";\r
35   strNSS +="</style>";\r
36   document.write(strNSS);\r
37 }\r
38 //-->\r
39 </script>\r
40 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
41 <!--\r
42 function reDo() {\r
43   if (innerWidth != origWidth || innerHeight != origHeight)\r
44      location.reload();\r
45 }\r
46 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
47         origWidth = innerWidth;\r
48         origHeight = innerHeight;\r
49         onresize = reDo;\r
50 }\r
51 onerror = null; \r
52 //-->\r
53 </script>\r
54 <style type="text/css">\r
55 <!--\r
56 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
57 p.WebHelpNavBar { text-align:right; }\r
58 -->\r
59 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
60 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
61 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
62 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
63 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
64 <script type="text/javascript" language="javascript1.2">\r
65 <!--\r
66 if (window.gbWhTopic)\r
67 {\r
68         if (window.setRelStartPage)\r
69         {\r
70         addTocInfo("MESH module\nQuality controls\nAspect ratio 3D");\r
71 addButton("show",BTN_IMG,"Show","","","","",0,0,"whd_show0.gif","whd_show2.gif","whd_show1.gif");\r
72 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"whd_hide0.gif","whd_hide2.gif","whd_hide1.gif");\r
73 \r
74         }\r
75 \r
76 \r
77         if (window.setRelStartPage)\r
78         {\r
79         setRelStartPage("index.htm");\r
80 \r
81                 autoSync(1);\r
82                 sendSyncInfo();\r
83                 sendAveInfoOut();\r
84         }\r
85 \r
86 }\r
87 else\r
88         if (window.gbIE4)\r
89                 document.location.reload();\r
90 //-->\r
91 </script>\r
92 </head>\r
93 <body><script type="text/javascript" language="javascript1.2">\r
94 <!--\r
95 if (window.writeIntopicBar)\r
96         writeIntopicBar(4);\r
97 //-->\r
98 </script>\r
99 <h1>Aspect ratio 3D</h1>\r
100 \r
101 <p><img src="image86.jpg" width="416px" height="385px" border="0" class="img_whs1"></p>\r
102 \r
103 <p>&nbsp;</p>\r
104 \r
105 <p><img src="i_blue.jpg" x-maintain-ratio="TRUE" width="30px" height="30px" border="0" class="img_whs2"> The Aspect Ratio 3D mesh quality criterion calculates \r
106  the same parameter as the <a href="files/aspect_ratio.htm">Aspect ratio</a> \r
107  criterion, but it is applied to 3D mesh elements: tetrahedrons, pentahedrons, \r
108  hexahedrons, etc. &nbsp;</p>\r
109 \r
110 <p>&nbsp;</p>\r
111 \r
112 <ul type="disc" class="whs3">\r
113         \r
114         <li class=kadov-p><p><img src="image20.gif" width="258px" height="246px" align="left" border="0" class="img_whs4">The <span style="font-weight: bold;"><B>Aspect \r
115  Ratio</B></span> of a <span style="font-weight: bold;"><B>tetrahedron</B></span> \r
116  3D element is calculated by the formula:</p></li>\r
117 </ul>\r
118 \r
119 <p>&nbsp;</p>\r
120 \r
121 <p>&nbsp;</p>\r
122 \r
123 <p><img src="image19.gif" width="133px" height="56px" border="0" class="img_whs5">,</p>\r
124 \r
125 <p>&nbsp;</p>\r
126 \r
127 <p>where <span style="font-weight: bold; font-style: italic;"><I><B>S</B></I></span><span \r
128  style="font-weight: bold;\r
129                 font-style: italic;\r
130                 vertical-align: Sub;"><I><B>K</B></I></span> is the sum of surfaces of the faces \r
131  of &#1050; and <span style="font-weight: bold; font-style: italic;"><I><B>V</B></I></span><span \r
132  style="vertical-align: Sub;\r
133                 font-weight: bold;\r
134                 font-style: italic;"><I><B>K</B></I></span> is the volume of &#1050; :</p>\r
135 \r
136 <p>&nbsp;</p>\r
137 \r
138 <p><img src="image18.gif" width="425px" height="192px" border="0" class="img_whs6">T</p>\r
139 \r
140 <p>&nbsp;</p>\r
141 \r
142 <ul type="disc" class="whs3">\r
143         \r
144         <li class=kadov-p><p>Other element types like quadrangle, pentahedron \r
145  and hexahedron use the following formula:</p></li>\r
146 </ul>\r
147 \r
148 <p><img src="image30.gif" width="89px" height="32px" border="0" class="img_whs7"> , where <span style="font-weight: bold; font-style: italic;"><I><B>Q</B></I></span><span \r
149  style="vertical-align: Sub;\r
150                 font-weight: bold;\r
151                 font-style: italic;"><I><B>i</B></I></span> represents the value of <span style="font-weight: bold; font-style: italic;"><I><B>Q</B></I></span><span \r
152  style="vertical-align: Sub;\r
153                 font-weight: bold;\r
154                 font-style: italic;"><I><B>k</B></I></span> for all possible simplexes (of the \r
155  same dimension as the element) that compose the element.</p>\r
156 \r
157 <p>For example, a hexahedron is split in 6 tetrahedrons, the <span style="font-weight: bold;"><B>Aspect \r
158  ratio 3D</B></span> is calculated for each of them, then the greatest <span \r
159  style="font-weight: bold; font-style: italic;"><I><B>Q</B></I></span><span style="vertical-align: Sub;\r
160         font-weight: bold;\r
161         font-style: italic;"><I><B>k</B></I></span> is considered to be the &nbsp;<span \r
162  style="font-weight: bold;"><B>Aspect ratio 3D</B></span> \r
163  criterion for the whole &nbsp;hexahedron.</p>\r
164 \r
165 <p><img src="pics/image139.gif" x-maintain-ratio="TRUE" width="569px" height="386px" border="0" class="img_whs8"></p>\r
166 \r
167 <p>&nbsp;</p>\r
168 \r
169 <p class=TODO>To apply the Aspect Ratio 3D quality criterion to your mesh:</p>\r
170 \r
171 <p class=TODO>&nbsp;</p>\r
172 \r
173 <p class="whs9">1. Display your mesh in the viewer.</p>\r
174 \r
175 <p class="whs9">&nbsp;</p>\r
176 \r
177 <p class="whs9">2. Choose <span style="font-weight: bold;"><B>Controls \r
178  &gt; Aspect Ratio 3D </B></span>or click <img src="image144.gif" width="24px" height="26px" border="0" class="img_whs10"> button of the toolbar. \r
179  Your mesh will be displayed in the viewer with its elements colored according \r
180  to the applied mesh quality control criterion:</p>\r
181 \r
182 <p>&nbsp;</p>\r
183 \r
184 <p class="whs11"><span style="font-weight: bold;"><B>See Also</B></span> \r
185  a sample TUI Script of an <span style="font-weight: bold;"><B><a href="quality_controls.htm#bookmark11">Aspect \r
186  Ratio 3D</B></span> quality control</a> operation. &nbsp;</p>\r
187 \r
188 <p>&nbsp;</p>\r
189 \r
190 <p>&nbsp;</p>\r
191 \r
192 <p>&nbsp;</p>\r
193 \r
194 <p>&nbsp;</p>\r
195 \r
196 <script type="text/javascript" language="javascript1.2">\r
197 <!--\r
198 if (window.writeIntopicBar)\r
199         writeIntopicBar(0);\r
200 //-->\r
201 </script>\r
202 </body>\r
203 </html>\r