3 \page extrusion_page Extrusion
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".
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"
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:
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>
25 When 2D elements are extruded, in addition to 3D elements segments are
26 created on ribs of the result 3D mesh. Free edges of input 2D elements
27 generate logically horizontal rib segments. Logically vertical rib
28 segments are generated from nodes belonging to a sole input 2D element
29 (a figure below illustrates this rule).
31 \image html extru_rib_segs.png "Two triangles extruded: no vertical rib segments generated from nodes #2 and #3 as they are shared by both triangles"
33 <em>To use extrusion:</em>
35 <li>From the \b Modification menu choose the \b Extrusion item or click
36 <em>"Extrusion"</em> button in the toolbar.
39 \image html image91.png
40 <em>"Extrusion" button</em>
43 The following dialog will appear:
45 \image html extrusionalongaline1.png
51 <li>Specify \b Nodes, \b Edges and \b Faces, which will be extruded, by one
54 <li><b>Select the whole mesh, sub-mesh or group</b> activating the
55 corresponding check-box.</li>
56 <li>Choose mesh elements with the mouse in the 3D Viewer. It is
57 possible to select a whole area with a mouse frame.</li>
58 <li>Input the element IDs directly in <b>Node IDs</b>, <b>Edge
59 IDs</b> and <b>Face IDs</b> fields. The selected elements will
60 be highlighted in the viewer, if the mesh is shown there.</li>
61 <li>Apply Filters. <b>Set filter</b> button allows to apply a
62 filter to the selection of elements. See more about filters in
63 the \ref filtering_elements "Selection filters" page.</li>
66 <li>If the <b>Extrusion to Distance</b> radio button is selected
67 - specify the translation vector by which the elements will be extruded.
71 \image html extrusionalongaline2.png
73 <li>If the <b>Extrusion Along Vector</b> radio button is selected
75 <li>specify the coordinates of the \b Vector along which the elements
76 will be extruded, either directly or by selecting the mesh face (the
77 normal to the face will define the vector),</li>
78 <li>specify the \b Distance of extrusion along the vector (it can
84 \image html extrusionalongaline3.png
86 <li>If the <b>Extrusion By Normal</b> radio button is selected,
87 every node of the selected faces is extruded along the \a average
88 of the \a normal vectors to the faces sharing the node. (Nodes and
89 edges cannot be extruded in this mode.)
91 <li>Specify the \b Distance of extrusion (it can be negative),</li>
92 <li>Use <b>Along average normal</b> check-box to specify along
93 which vector the distance is measured.
95 <li>If it is \a activated the distance is measured along the
96 average normal mentioned above. </li>
97 <li>If it is \a deactivated every node is extruded along the
98 average normal till its intersection with a virtual plane obtained
99 by translation of the face sharing the node along its own normal
100 by the \b Distance.</li>
102 The picture below shows a cross-section of a 2D mesh extruded
103 with <b>Along average normal</b> activated (to the left) and
104 deactivated (to the right).
106 \image html extrusionbynormal_alongavgnorm.png "'Along average normal' activated (to the left) and deactivated (to the right)"
109 <li><b>Use only input elements</b> check-box specifies what
110 elements will be used to compute the average normal.<ul>
111 <li> If it is \a activated only selected faces, among faces
112 sharing the node, are used to compute the average normal at
114 <li>Else all faces sharing the node are used.</li></ul>
116 The picture below shows a cross-section of a 2D mesh the upper
117 plane of which is extruded with <b>Use only input elements</b>
118 activated (to the left) and deactivated (to the right).
120 \image html extrusionbynormal_useonly.png "'Use only input elements' activated (to the left) and deactivated (to the right)"
125 <li>Specify the <b>Number of steps</b>.</li>
126 <li>If you activate <b>Generate Groups</b> check-box, the <em>result elements</em>
127 created from <em>selected elements</em> contained in groups will be
128 included into new groups named by pattern "<old group
129 name>_extruded" and "<old group name>_top". For example if a
130 selected quadrangle is included in \a g_Faces group (see figures
131 below) then result hexahedra will be included in \a
132 g_Faces_extruded group and a quadrangle created at the "top" of
133 extruded mesh will be included in \a g_Faces_top group. <br>
134 \image html extrusion_groups.png
135 \image html extrusion_groups_res.png
136 <p> This check-box is active only if there are some groups in the mesh.
140 <li>Click \b Apply or <b> Apply and Close</b> button to confirm the operation.</li>
144 \anchor extrusion_struct
145 <h2>Example: creation of a structured mesh from scratch</h2>
147 \image html image75.jpg "A node is extruded into a line of segments"
149 \image html image76.jpg "The line of segments is extruded into a quadrangle mesh"
151 \image html image77.jpg "The quadrangle mesh is revolved into a hexahedral mesh"
154 <br><b>See Also</b> a sample TUI Script of an
155 \ref tui_extrusion "Extrusion" operation.