Salome HOME
Update of CheckDone
[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 .. |rmn| image:: ../images/remove_nodes_icon.png
24
25 #. Select your mesh in the Object Browser or in the 3D viewer.
26 #. From the **Modification** menu choose **Remove** and from the associated submenu select the **Nodes**, or just click *"Remove nodes"* button |rmn| in the toolbar.
27    The following dialog box will appear:
28
29         .. image:: ../images/removenodes.png
30                 :align: center
31
32
33    In this dialog box you can specify one or several nodes:
34
35    * choose mesh nodes with the mouse in the 3D Viewer. It is possible to select a whole area with a mouse frame; or 
36    * input the node IDs directly in **ID Elements** field. The selected nodes will be highlighted in the viewer; or
37    * 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.
38
39 #. Click **Apply** or **Apply and Close** to confirm deletion of the specified nodes.
40
41 .. note::
42         Be careful while removing nodes because if you remove a definite node of your mesh all adjacent elements will be also deleted.
43
44
45 .. _removing_orphan_nodes_anchor:
46
47 Removing orphan nodes
48 #####################
49
50 There is a quick way to remove all orphan (free) nodes.
51
52 *To remove orphan nodes:*
53
54 .. |rmon| image:: ../images/remove_orphan_nodes_icon.png
55
56 #. Select your mesh in the Object Browser or in the 3D viewer.
57 #. From the **Modification** menu choose **Remove** and from the associated submenu select **Orphan Nodes**, or just click *"Remove orphan nodes"* button |rmon| in the toolbar.
58    The following Warning message box will appear:
59
60         .. image:: ../images/removeorphannodes.png
61                 :align: center
62
63 #. Confirm nodes removal by pressing "Yes" button.
64
65
66 .. _removing_elements_anchor:
67
68 Removing elements
69 #################
70
71 *To remove an element:*
72
73 .. |rme| image:: ../images/remove_elements_icon.png
74
75 #. Select your mesh in the Object Browser or in the 3D viewer.
76 #. From the **Modification** menu choose **Remove** and from the associated submenu select the **Elements**, or just click *"Remove elements"* button |rme| in the toolbar.
77
78    The following dialog box will appear:
79
80         .. image:: ../images/removeelements.png
81                 :align: center
82
83    In this dialog box you can specify one or several elements:
84
85    * choose mesh elements with the mouse in the 3D Viewer. It is possible to select a whole area with a mouse frame; or 
86    * input the element IDs directly in **ID Elements** field. The selected elements will be highlighted in the viewer; or
87    * 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.
88
89 #. Click **Apply** or **Apply and Close** to confirm deletion of the specified elements.
90
91 .. image:: ../images/remove_nodes1.png 
92         :align: center
93
94 .. centered::
95         The initial mesh
96
97 .. image:: ../images/remove_nodes2.png 
98         :align: center
99
100 .. centered::
101         The mesh with some elements removed
102
103
104 .. _clear_mesh_anchor:
105
106 Clearing Mesh Data
107 ##################
108
109 *To remove all nodes and all types of cells in your mesh at once:*
110
111 .. |clr| image:: ../images/mesh_clear.png
112
113 #. Select your mesh in the Object Browser or in the 3D viewer.
114 #. From the **Modification** menu choose **Remove** and from the associated submenu select the **Clear Mesh Data**, or just click *"Clear Mesh Data"* button |clr| 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.
115
116 .. note::
117    This command works in a different way in different situations: 
118                 * if the mesh is computed on a geometry, then *Clear Mesh Data* removes all elements and nodes.
119                 * 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.
120
121 **See Also** a sample TUI Script of a :ref:`tui_removing_nodes_and_elements` operation.  
122
123
124