Salome HOME
0023546: [EDF] AsterStudy: add a method to Python API to show/hide orientation vector...
[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 **To merge nodes of your mesh:**
16
17 #. Choose **Modification** -> **Transformation** -> **Merge nodes** menu item. The following dialog box shall appear:
18
19         .. image:: ../images/mergenodes_auto.png
20                 :align: center
21
22         * **Name** is the name of the mesh whose nodes will be merged.
23         * **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.
24         * **Tolerance** is a maximum distance between nodes sufficient for merging.
25         * 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.
26         * 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. 
27         * **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.
28         * **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.
29   
30                 * *Selection* button activates selection of nodes to keep.
31                 * **Nodes** button activates selection of nodes in the Viewer.
32                 * **Groups and sub-meshes** button activates selection of groups and sub-meshes.
33                 * **Add** button adds selected nodes or groups to the list.
34                 * Nodes or groups selected in the list can be removed using **Remove** button.
35
36 #. **Automatic mode:**
37
38         * 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.
39
40 #. The **Manual** mode gives you full control of what the operation will do. In this mode additional controls are available:
41
42         * **Detect** button generates the list of coincident nodes for the given **Tolerance**.
43         * **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.
44
45                 * **Remove** button deletes the selected group from the list.
46                 * **Add** button adds to the list a group of nodes selected in the viewer.
47                 * **Select all** check-box selects all groups.
48                 * **Show double nodes IDs** check-box shows/hides identifiers of nodes of selected groups in the 3D viewer.
49
50         .. image:: ../images/mergenodes.png
51                 :align: center
52
53
54         * **Edit selected group of coincident nodes** list allows editing the selected group:
55     
56         .. image:: ../images/add.png
57                 :align: center
58
59         .. centered::
60                 adds to the group the nodes selected in the viewer.
61     
62         .. image:: ../images/remove.png
63                 :align: center
64
65         .. centered::
66                 removes from the group the selected nodes.
67     
68         .. image:: ../images/sort.png
69                 :align: center
70
71         .. centered::
72                 moves the selected node to the first position in the group in order to keep it in the mesh.
73
74 #. To confirm your choice click **Apply** or **Apply and Close** button.
75
76 .. image:: ../images/merging_nodes1.png 
77         :align: center
78
79 .. centered::
80          The initial object. Nodes 25, 26 and 5 are added to **Nodes to keep during the merge** group.
81
82 .. image:: ../images/merging_nodes2.png
83         :align: center
84
85 .. centered::
86         The object has been merged
87
88
89 **See Also** a sample TUI Script of a :ref:`tui_merging_nodes` operation.  
90
91