Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/smesh.git] / doc / salome / gui / SMESH / input / sewing_meshes.doc
1 /*!
2
3 \page sewing_meshes_page Sewing meshes
4
5 \n In SMESH you can sew elements of  different meshes. The current
6 functionality allows you to sew:
7 <ul>
8 <li>\ref free_borders_anchor "Free borders"</li>
9 <li>\ref conform_free_borders_anchor "Conform free borders"</li>
10 <li>\ref border_to_side_anchor "Border to side"</li>
11 <li>\ref side_elements_anchor "Side elements"</li>
12 </ul>
13
14 <em>To sew elements of different meshes:</em>
15 <ol>
16 <li>From the \b Modification menu choose the \b Transformation item
17 and from its sub-menu select the \b Sewing item.</li>
18 <li>Check in the dialog box one of the radio buttons corresponding to
19 the type of sewing operation you would like to perform.</li>
20 <li>Fill the other fields available in the dialog box.</li>
21 <li>Click the \b OK or \b Apply button to perform the operation of sewing.</li>
22 </ol>
23
24 <br>
25 \anchor free_borders_anchor
26 <h2>Sew free borders</h2>
27
28 This functionality allows you to unite two free borders of a 2D mesh.
29
30 \image html sewing1.png
31
32 For sewing free borders you should define three points on each border:
33 first, second and the last node:
34 <ul>
35 <li>the first node specifies beginning of the border;</li>
36 <li>the second node specifies the part of the border which should be
37 considered (as far as the free border usually forms a closed
38 contour);</li>
39 <li>the last node specifies the end of the border.</li>
40 </ul>
41
42 You can select these nodes in the 3D viewer or define by its id.
43
44 The first and the second nodes should belong to the same link of a
45 face. The second and the last nodes of a border can be the same. The
46 first and the last nodes of two borders can be the same. The
47 corresponding end nodes of two borders will be merged. Intermediate
48 nodes of two borders will be either merged or inserted into faces of
49 the opposite border.
50
51 The sewing algorithm is as follows:
52 <ol>
53 <li>The parameter (U) of each node within a border is computed. So
54 that the first node has U=0.0, the last node has U=1.0, for the rest
55 nodes 0.0 < U < 1.0;</li>
56 <li>Compare node parameters of the two borders. If two nodes of the
57 opposite borders have close parameters, they are merged, i.e. a node
58 of the first border is replaced in all elements by a node of the
59 second border. If a node has no node with a close parameter in the
60 opposite border, it is inserted into an edge of element of the
61 opposite border, an element is split. Two nodes are considered close
62 enough to merge, if difference of their parameters is less than one
63 fifth of minimum length of adjacent face edges on the borders.</li>
64 </ol>
65
66 \image html image22.jpg
67
68 <b>See Also</b> a sample TUI Script of a 
69 \ref tui_sew_free_borders "Sew Free Borders" operation.
70
71 <br>
72 \anchor conform_free_borders_anchor
73 <h2>Sew conform free borders</h2>
74
75 This functionality can be used to unite two free borders of a 2D mesh.
76
77 \image html sewing2.png
78
79 The borders of meshes for sewing are defined as for "Sew free borders"
80 except that the second free border is not limited and can be defined
81 by the first and the second nodes only. The first nodes of two borders
82 can be the same.
83
84 The algorithm is following: counting nodes starting at the first ones,
85 the n-th node of the first border is merged with the n-th node of the
86 other border, until the end of either of borders. Nodes of the first
87 border are replaced in all elements with corresponding nodes of the
88 second border.
89 \n For sewing conform free borders you should define three points on
90 the first border and two points on the second one. User can select
91 these nodes in 3D viewer or define node by its id.
92
93 \image html image22.jpg
94
95 <b>See Also</b> a sample TUI Script of a 
96 \ref tui_sew_conform_free_borders "Sew Conform Free Borders"
97 operation.
98
99 <br>
100 \anchor border_to_side_anchor
101 <h2>Sew border to side</h2>
102
103 "Sew border to side" is intended to sew a free border to a mesh
104 surface.
105 \n The free border is defined as for "Sewing of free borders". The
106 place where to sew the border is defined by two nodes, between which
107 the border faces are placed, so that the first border node is merged
108 with the first node on the side and the last node of the border is
109 merged with the second specified node on the side.
110
111 \image html sewing3.png
112
113 The algorithm is following.
114 <ol>
115 <li>Find a sequence of linked nodes on the side such that the found
116 links to be most co-directed with the links of the free border.</li>
117 <li>Sew two sequences of nodes using algorithm of "Sewing of free berders".
118 \n For sewing border to side you should define three points on the
119 border and two points on the side. User can select these nodes in 3D
120 viewer or define node by its id.</li>
121 </ol>
122
123 \image html image30.jpg
124
125 <b>See Also</b> a sample TUI Script of a 
126 \ref tui_sew_meshes_border_to_side "Sew Border to Side" operation.  
127
128 <br>
129 \anchor side_elements_anchor
130 <h2>Sew side elements</h2>
131
132 This operation is intended to unite two mesh surfaces.
133
134 \image html sewing4.png 
135
136 Surfaces may be defined by either 2d or 3d elements. The number of
137 given elements of the sides must be the same. The sets of given
138 elements must be topologically equal, i.e. each node of one element
139 set must have a corresponding node in the other element set and
140 corresponding nodes must be equally linked. If there are 3d elements
141 in a set, only their free faces must obey to that rule.
142 \n Two corresponding nodes on each side must be specified. They must
143 belong to one element and must be located on an element set boundary.
144
145 Sewing algorithm finds and merges the corresponding nodes starting
146 from the specified ones.
147
148 \image html image31.jpg
149
150 \image html image32.jpg
151
152 For sewing side elements you should define elements for sewing and two
153 nodes for merging on the each side. User can select these elements and
154 nodes in 3D viewer or define them by its id.
155
156 <b>See Also</b> a sample TUI Script of a 
157 \ref tui_sew_side_elements "Sew Side Elements" operation.  
158
159 */