]> SALOME platform Git repositories - modules/smesh.git/blob - doc/salome/gui/SMESH/input/extrusion.doc
Salome HOME
e248114d2b05c691b57235f2c17d20e6de5fb8b5
[modules/smesh.git] / doc / salome / gui / SMESH / input / extrusion.doc
1 /*!
2
3 \page extrusion_page Extrusion
4
5 \n Extrusion is used to build mesh elements of plus one
6 dimension than the input ones. Boundary elements around generated
7 mesh of plus one dimension are additionally created. All created
8 elements can be automatically grouped. Extrusion can be used to create
9 a \ref extrusion_struct "structured mesh from scratch".
10
11 \image html extrusion_box.png "If you extrude several quadrangles, you get exactly the same mesh as if you meshed a geometrical box (except for that the initial quadrangles can be incorrectly oriented): quadrangles and segments are created on the boundary of the generated mesh"
12
13 <p>Any node, segment or 2D element can be extruded. Each type of
14 elements is extruded into a corresponding type of result elements:
15 <table>
16 <tr><td><b>Extruded element</b></td><td><b> Result element </b></td></tr>
17 <tr><td>Node              </td><td> Segment </td></tr>
18 <tr><td>Segment           </td><td> Quadrilateral </td></tr>
19 <tr><td>Triangle          </td><td> Pentahedron </td></tr>
20 <tr><td>Quadrilateral     </td><td> Hexahedron </td></tr>
21 <tr><td>Polygon           </td><td> Polyhedron </td></tr>
22 <tr><td>Hexagonal polygon </td><td> Hexagonal prism </td></tr>
23 </table>
24
25 <em>To use extrusion:</em>
26 <ol>
27 <li>From the \b Modification menu choose the \b Extrusion item or click
28 <em>"Extrusion"</em> button in the toolbar. 
29
30 <center>
31 \image html image91.png
32 <em>"Extrusion" button</em>
33 </center>
34
35 The following dialog will appear:
36
37 \image html extrusionalongaline1.png
38
39 </li>
40
41 <li>In this dialog:
42 <ul>
43   <li>Specify \b Nodes, \b Edges and \b Faces, which will be extruded, by one
44     of following means:
45     <ul>
46       <li><b>Select the whole mesh, sub-mesh or group</b> activating the
47         corresponding check-box.</li>
48       <li>Choose mesh elements with the mouse in the 3D Viewer. It is
49         possible to select a whole area with a mouse frame.</li> 
50       <li>Input the element IDs directly in <b>Node IDs</b>, <b>Edge
51         IDs</b> and <b>Face IDs</b> fields. The selected elements will
52         be highlighted in the viewer, if the mesh is shown there.</li> 
53       <li>Apply Filters. <b>Set filter</b> button allows to apply a
54         filter to the selection of elements. See more about filters in
55         the \ref filtering_elements "Selection filters" page.</li> 
56     </ul>
57   </li>
58   <li>If the <b>Extrusion to Distance</b> radio button is selected
59     - specify the translation vector by which the elements will be extruded.
60   </li>
61   
62 \image html extrusionalongaline2.png  
63
64  <li>If the <b>Extrusion Along Vector</b> radio button is selected
65     <ul>
66       <li>specify the coordinates of the \b Vector along which the elements
67         will be extruded, either directly or by selecting the mesh face (the
68         normal to the face will define the vector),</li>
69       <li>specify the \b Distance of extrusion along the vector (it can
70         be negative).</li>
71     </ul>
72   </li>
73   
74 \image html extrusionalongaline3.png  
75   
76   <li>If the <b>Extrusion By Normal</b> radio button is selected,
77     every node of the selected faces is extruded along the \a average
78     of the \a normal vectors to the faces sharing the node. (Nodes and
79     edges cannot be extruded in this mode.)
80     <ul>
81       <li>Specify the \b Distance of extrusion (it can be negative),</li>
82       <li>Use <b>Along average normal</b> check-box to specify along
83         which vector the distance is measured.
84         <ul>
85           <li>If it is \a activated the distance is measured along the
86             average normal mentioned above. </li>
87           <li>If it is \a deactivated every node is extruded along the
88             average normal till its intersection with a virtual plane obtained
89             by translation of the face sharing the node along its own normal
90             by the \b Distance.</li>
91         </ul>
92         The picture below shows a cross-section of a 2D mesh extruded
93         with <b>Along average normal</b> activated (to the left) and
94         deactivated (to the right). 
95
96         \image html extrusionbynormal_alongavgnorm.png "'Along average normal' activated (to the left) and deactivated (to the right)"
97         <p></li>
98
99       <li><b>Use only input elements</b> check-box specifies what
100         elements will be used to compute the average normal.<ul>
101           <li> If it is \a activated only selected faces, among faces
102             sharing the node, are used to compute the average normal at
103             the node. </li>
104           <li>Else all faces sharing the node are used.</li></ul>
105
106         The picture below shows a cross-section of a 2D mesh the upper
107         plane of which is extruded with <b>Use only input elements</b>
108         activated (to the left) and deactivated (to the right). 
109
110         \image html extrusionbynormal_useonly.png "'Use only input elements' activated (to the left) and deactivated (to the right)"
111         <p></li>
112   </li>
113   </ul>
114
115   <li>Specify the <b>Number of steps</b>.</li>
116   <li>If you activate <b>Generate Groups</b> check-box, the <em>result elements</em>
117     created from <em>selected elements</em> contained in groups will be
118     included into new groups named by pattern "<old group
119     name>_extruded" and "<old group name>_top". For example if a
120     selected quadrangle is included in \a g_Faces group (see figures
121     below) then result hexahedra will be included in \a
122     g_Faces_extruded group and a quadrangle created at the "top" of
123     extruded mesh will be included in \a g_Faces_top group. <br> 
124 \image html extrusion_groups.png
125 \image html extrusion_groups_res.png
126     <p> This check-box is active only if there are some groups in the mesh.
127   </li>
128 </ul>
129
130 <li>Click \b Apply or <b> Apply and Close</b>  button to confirm the operation.</li>
131 </ol>
132 <p>
133
134 \anchor extrusion_struct
135 <h2>Example: creation of a structured mesh from scratch</h2>
136
137 \image html image75.jpg "A node is extruded into a line of segments"
138 <br>
139 \image html image76.jpg "The line of segments is extruded into a quadrangle mesh"
140 <br>
141 \image html image77.jpg "The quadrangle mesh is revolved into a hexahedral mesh"
142
143
144 <br><b>See Also</b> a sample TUI Script of an 
145 \ref tui_extrusion "Extrusion" operation. 
146
147 */