Salome HOME
Redesign SALOME documentation
[modules/smesh.git] / doc / salome / gui / SMESH / input / removing_nodes_and_elements.rst
1 .. _removing_nodes_and_elements_page:
2
3 ***************************
4 Removing nodes and elements
5 ***************************
6
7 In MESH you can remove nodes and all types of cells of your mesh.
8
9 * :ref:`removing_nodes_anchor`
10 * :ref:`removing_orphan_nodes_anchor`
11 * :ref:`removing_elements_anchor`
12 * :ref:`clear_mesh_anchor`
13
14
15
16 .. _removing_nodes_anchor:
17
18 Removing nodes
19 ##############
20
21 **To remove a node:**
22
23 #. Select your mesh in the Object Browser or in the 3D viewer.
24 #. From the **Modification** menu choose **Remove** and from the associated submenu select the **Nodes**, or just click **"Remove nodes"** button in the toolbar.
25
26         .. image:: ../images/remove_nodes_icon.png
27                 :align: center
28
29         .. centered::
30                 **"Remove nodes" button**
31
32         The following dialog box will appear:
33
34         .. image:: ../images/removenodes.png
35                 :align: center
36
37
38         In this dialog box you can specify one or several nodes:
39
40 #. choose mesh nodes with the mouse in the 3D Viewer. It is possible to select a whole area with a mouse frame; or 
41 #. input the node IDs directly in **ID Elements** field. The selected nodes will be highlighted in the viewer; or
42 #. apply Filters. **Set filter** button allows to apply a filter to the selection of nodes. See more about filters in the :ref:`selection_filter_library_page` page.
43
44
45
46 .. note::
47         Be careful while removing nodes because if you remove a definite node of your mesh all adjacent elements will be also deleted.
48
49
50 .. _removing_orphan_nodes_anchor:
51
52 Removing orphan nodes
53 #####################
54
55 There is a quick way to remove all orphan (free) nodes.
56
57 **To remove orphan nodes:**
58
59 #. Select your mesh in the Object Browser or in the 3D viewer.
60 #. From the **Modification** menu choose **Remove** and from the associated submenu select **Orphan Nodes**, or just click **"Remove orphan nodes"** button in the toolbar.
61
62         .. image:: ../images/remove_orphan_nodes_icon.png
63                 :align: center
64
65         .. centered::
66                 **"Remove orphan nodes" button**
67
68 The following Warning message box will appear:
69
70         .. image:: ../images/removeorphannodes.png
71                 :align: center
72
73
74 Confirm nodes removal by pressing "Yes" button.
75
76
77 .. _removing_elements_anchor:
78
79 Removing elements
80 #################
81
82 **To remove an element:**
83
84 #. Select your mesh in the Object Browser or in the 3D viewer.
85 #. From the **Modification** menu choose **Remove** and from the associated submenu select the **Elements**, or just click **"Remove elements"** button in the toolbar.
86
87         .. image:: ../images/remove_elements_icon.png
88                 :align: center
89
90         .. centered::
91                 **"Remove elements" button**
92
93         The following dialog box will appear:
94
95         .. image:: ../images/removeelements.png
96                 :align: center
97
98         In this dialog box you can specify one or several elements
99
100 #. choose mesh elements with the mouse in the 3D Viewer. It is possible to select a whole area with a mouse frame; or 
101 #. input the element IDs directly in **ID Elements** field. The selected elements will be highlighted in the viewer; or
102 #. apply Filters. **Set filter** button allows to apply a filter to the selection of elements. See more about filters in the :ref:`selection_filter_library_page` page.
103 #. Click **Apply** or **Apply and Close** to confirm deletion of the specified elements.
104
105 .. image:: ../images/remove_nodes1.png 
106         :align: center
107
108 .. centered::
109         "The initial mesh"
110
111 .. image:: ../images/remove_nodes2.png 
112         :align: center
113
114 .. centered::
115         "The mesh with some elements removed" 
116
117
118 .. _clear_mesh_anchor:
119
120 Clearing Mesh Data
121 ##################
122
123 **To remove all nodes and all types of cells in your mesh at once:**
124
125 #. Select your mesh in the Object Browser or in the 3D viewer.
126 #. From the Modification menu choose Remove and from the associated submenu select the Clear Mesh Data, or just click **"Clear Mesh Data"** button in the toolbar. You can also right-click on the mesh in the Object Browser and select Clear Mesh Data in the pop-up menu.
127
128 .. image:: ../images/mesh_clear.png
129         :align: center
130
131 .. centered::
132         **"Clear Mesh Data" button**
133
134 .. note::
135         This command works in a different way in different situations: 
136                 * if the mesh is computed on a geometry, then "Clear Mesh Data" removes all elements and nodes.
137                 * if the mesh is not based on a geometry (imported, compound, created from scratch etc.), then "Clear Mesh Data" removes only the elements and nodes computed by algorithms. If no such elements or nodes have been created, can remove nothing.
138
139 **See Also** a sample TUI Script of a :ref:`tui_removing_nodes_and_elements` operation.  
140
141
142