Salome HOME
Precise doc on sub-mesh priority
[modules/smesh.git] / doc / salome / gui / SMESH / input / merging_nodes.rst
1 .. _merging_nodes_page:
2
3 *************
4 Merging nodes
5 *************
6
7 This functionality allows user to detect groups of coincident nodes with specified tolerance; each group of the coincident nodes can be then converted to the single node.
8
9 .. image:: ../images/mergenodes_ico.png
10         :align: center
11
12 .. centered::
13         *"Merge nodes"* menu button
14
15 .. |ad| image:: ../images/add.png
16 .. |rm| image:: ../images/remove.png
17 .. |mv| image:: ../images/sort.png
18
19 *To merge nodes of your mesh:*
20
21 #. Choose **Modification** -> **Transformation** -> **Merge nodes** menu item. The following dialog box shall appear:
22
23         .. image:: ../images/mergenodes_auto.png
24                 :align: center
25         
26         * **Names** contains names of the selected mesh objects whose nodes will be merged.
27         * **Automatic** or **Manual** mode allows choosing how the nodes are processed. In **Manual** mode you can adjust groups of coincident nodes detected by the program and/or select any nodes to be merged.
28         * **Tolerance** is a maximum distance between nodes sufficient for merging.
29         * Activation of **No merge of corner and medium nodes of quadratic cells** check-box prevents merging medium nodes of quadratic elements with corner nodes. This check-box is enabled provided that the selected mesh includes quadratic elements.
30         * Activation of **Avoid making holes** check-box prevents merging nodes that make elements invalid (but not degenerated) and hence removed. Thus, no holes in place of removed elements appear. 
31         * **Exclude groups from detection** group allows to ignore the nodes which belong to the specified mesh groups. This control is active provided that the mesh includes groups.
32         * **Nodes to keep during the merge** group allows to specify nodes to keep in the mesh. (By default a node being the first in a group of coincident nodes is kept.) It is possible to either select nodes in the Viewer or select groups of any element type whose nodes will be kept.
33   
34                 * *Selection* button activates selection of nodes to keep.
35                 * **Nodes** button activates selection of nodes in the Viewer.
36                 * **Groups and sub-meshes** button activates selection of groups and sub-meshes.
37                 * **Add** button adds selected nodes or groups to the list.
38                 * Nodes or groups selected in the list can be removed using **Remove** button.
39
40 #. **Automatic mode:**
41
42         * In the **Automatic** Mode all nodes within the indicated tolerance will be merged. The nodes which belong to the groups specified in **Exclude groups from detection** will NOT be taken into account.
43
44 #. The **Manual** mode gives you full control of what the operation will do. In this mode additional controls are available:
45
46         * **Detect** button generates the list of coincident nodes for the given **Tolerance**.
47         * **Coincident nodes** is a list of groups of nodes for merging. Upon **Apply** all nodes of each group will be united into one node. The first node of a group is kept and the others are removed. By default the first node has a lowest ID within the group.
48
49                 * **Remove** button deletes the selected group from the list.
50                 * **Add** button adds to the list a group of nodes selected in the viewer.
51                 * **Select all** check-box selects all groups.
52                 * **Show double nodes IDs** check-box shows/hides identifiers of nodes of selected groups in the 3D viewer.
53
54         .. image:: ../images/mergenodes.png
55                 :align: center
56
57
58         * **Edit selected group of coincident nodes** list allows editing the selected group:
59     
60           * |ad| adds to the group the nodes selected in the viewer.
61           * |rm| removes from the group the selected nodes.
62           * |mv| moves the selected node to the first position in the group in order to keep it in the mesh.
63
64 #. To confirm your choice click **Apply** or **Apply and Close** button.
65
66 .. figure:: ../images/merging_nodes1.png 
67    :align: center
68
69    The initial object. Nodes 25, 26 and 5 are added to **Nodes to keep during the merge** group.
70
71 .. figure:: ../images/merging_nodes2.png
72    :align: center
73
74    The object has been merged
75
76
77 **See Also** a sample TUI Script of a :ref:`tui_merging_nodes` operation.  
78
79