1 .. _removing_nodes_and_elements_page:
3 ***************************
4 Removing nodes and elements
5 ***************************
7 In MESH you can remove nodes and all types of cells of your mesh.
9 * :ref:`removing_nodes_anchor`
10 * :ref:`removing_orphan_nodes_anchor`
11 * :ref:`removing_elements_anchor`
12 * :ref:`clear_mesh_anchor`
16 .. _removing_nodes_anchor:
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.
26 .. image:: ../images/remove_nodes_icon.png
30 **"Remove nodes" button**
32 The following dialog box will appear:
34 .. image:: ../images/removenodes.png
38 In this dialog box you can specify one or several nodes:
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.
47 Be careful while removing nodes because if you remove a definite node of your mesh all adjacent elements will be also deleted.
50 .. _removing_orphan_nodes_anchor:
55 There is a quick way to remove all orphan (free) nodes.
57 **To remove orphan nodes:**
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.
62 .. image:: ../images/remove_orphan_nodes_icon.png
66 **"Remove orphan nodes" button**
68 The following Warning message box will appear:
70 .. image:: ../images/removeorphannodes.png
74 Confirm nodes removal by pressing "Yes" button.
77 .. _removing_elements_anchor:
82 **To remove an element:**
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.
87 .. image:: ../images/remove_elements_icon.png
91 **"Remove elements" button**
93 The following dialog box will appear:
95 .. image:: ../images/removeelements.png
98 In this dialog box you can specify one or several elements
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.
105 .. image:: ../images/remove_nodes1.png
111 .. image:: ../images/remove_nodes2.png
115 "The mesh with some elements removed"
118 .. _clear_mesh_anchor:
123 **To remove all nodes and all types of cells in your mesh at once:**
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.
128 .. image:: ../images/mesh_clear.png
132 **"Clear Mesh Data" button**
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.
139 **See Also** a sample TUI Script of a :ref:`tui_removing_nodes_and_elements` operation.