Salome HOME
Update of CheckDone
[modules/smesh.git] / doc / salome / gui / SMESH / input / merging_elements.rst
1 .. _merging_elements_page:
2
3 ****************
4 Merging Elements
5 ****************
6
7 This functionality allows to merge coincident elements of a mesh. Two elements are considered coincident if they are based on the same set of nodes.
8
9 .. image:: ../images/mergeelems_ico.png
10         :align: center
11
12 .. centered::
13         *"Merge elements"* menu button
14
15 To merge elements choose in the main menu **Modification** -> **Transformation** -> **Merge elements** item. The following dialog box shall appear:
16
17 .. image:: ../images/mergeelems_auto.png
18         :align: center
19
20 .. |ad| image:: ../images/add.png
21 .. |rm| image:: ../images/remove.png
22 .. |mv| image:: ../images/sort.png
23
24 In this dialog:
25
26         * **Names** contains names of the selected mesh objects whose elements will be merged.
27         * **Automatic** or **Manual** Mode allows choosing how the elements are processed. In the **Automatic** Mode all elements created on the same nodes will be merged. In **Manual** mode you can adjust groups of coincident elements detected by the program.
28         * **Exclude groups from detection** group allows to ignore the elements which belong to the specified mesh groups. This control is active provided that the mesh includes groups.
29         * **Elements to keep during the merge** group allows to specify elements to keep in the mesh. (By default an element being the first in a group of coincident elements is kept.) It is possible to either select elements in the Viewer or select groups whose elements will be kept.
30   
31                 * *Selection* button activates selection of elements to keep.
32                 * **Elements** button activates selection of elements in the Viewer.
33                 * **Groups and sub-meshes** button activates selection of groups and sub-meshes.
34                 * **Add** button adds selected elements or groups to the list.
35                 * Elements or groups selected in the list can be removed using **Remove** button.
36
37
38           If the **Manual** Mode is selected, additional controls are available:
39
40                 .. image:: ../images/mergeelems.png
41                         :align: center
42      
43                                    
44                 * **Detect** button generates the list of coincident elements found in the selected object.
45                 * **Coincident elements** is a list of groups of elements for merging. After the operation all elements of each group will be united into one element. The first element of a group is kept and the others are removed.
46                 * **Remove** button deletes the selected group from the list.
47                 * **Add** button adds to the list a group of elements selected in the viewer with pressed "Shift" key.
48                 * **Select all** check-box selects all groups.
49                 * **Show double elements IDs** check-box shows/hides identifiers of elements of the selected groups in the 3D viewer.
50                 * **Edit selected group of coincident elements** list allows editing the selected group:
51     
52                         * |ad| adds to the group the elements selected in the viewer.
53                         * |rm| removes the selected elements from the group.
54                         * |mv| moves the selected element to the first position in the group in order to keep it in the mesh.
55     
56   
57
58         * To confirm your choice click **Apply** or **Apply and Close** button.
59
60
61 In the following picture you see a triangle which coincides with one of the elements of the mesh. After we apply **Merge Elements** functionality, the triangle will be completely merged with the mesh.
62
63 .. image:: ../images/meshtrianglemergeelem1.png
64         :align: center
65
66 **See Also** a sample TUI Script of a :ref:`tui_merging_elements` operation.
67
68