smesh/doc/gui/input/removing_nodes_and_elements.rst

158 lines
5.5 KiB
ReStructuredText
Raw Permalink Normal View History

2017-12-08 19:09:48 +05:00
.. _removing_nodes_and_elements_page:
***************************
Removing nodes and elements
***************************
In MESH you can remove nodes and all types of cells of your mesh.
* :ref:`removing_nodes_anchor`
* :ref:`removing_nodes_reconnect_anchor`
2017-12-08 19:09:48 +05:00
* :ref:`removing_orphan_nodes_anchor`
* :ref:`removing_elements_anchor`
* :ref:`clear_mesh_anchor`
.. _removing_nodes_anchor:
Removing nodes
##############
**To remove a node:**
2018-05-25 22:04:48 +05:00
.. |rmn| image:: ../images/remove_nodes_icon.png
2017-12-08 19:09:48 +05:00
2018-05-25 22:04:48 +05:00
#. Select your mesh in the Object Browser or in the 3D viewer.
#. From the **Modification** menu choose **Remove** and from the associated submenu select the **Nodes**, or just click *"Remove nodes"* button |rmn| in the toolbar.
The following dialog box will appear:
2017-12-08 19:09:48 +05:00
.. image:: ../images/removenodes.png
:align: center
2018-05-25 22:04:48 +05:00
In this dialog box you can specify one or several nodes:
2017-12-08 19:09:48 +05:00
2018-05-25 22:04:48 +05:00
* choose mesh nodes with the mouse in the 3D Viewer. It is possible to select a whole area with a mouse frame; or
* input the node IDs directly in **Node IDs** field. The selected nodes will be highlighted in the viewer; or
2018-05-25 22:04:48 +05:00
* 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.
2017-12-08 19:09:48 +05:00
2018-05-25 22:04:48 +05:00
#. Click **Apply** or **Apply and Close** to confirm deletion of the specified nodes.
2017-12-08 19:09:48 +05:00
.. note::
Be careful while removing nodes because if you remove a definite node of your mesh all adjacent elements will be also deleted.
.. _removing_nodes_reconnect_anchor:
Removing node with reconnection
###############################
This operation removes a node and changes surrounding faces in order to cover a hole appearing in the mesh. This operation applies to 2D triangle mesh only.
.. image:: ../images/remove_node_reconnection.png
:align: center
**To remove a node:**
.. |rmnr| image:: ../images/remove_node_reconnection_icon.png
#. Select your mesh in the Object Browser or in the 3D viewer.
#. From the **Modification** menu choose **Remove** and from the associated submenu select the **Node with reconnection**, or just click *"Remove node with reconnection"* button |rmnr| in the toolbar.
The following dialog box will appear:
.. image:: ../images/remove_node_reconnection_dlg.png
:align: center
In this dialog box you can specify one node to remove:
* choose a mesh node with the mouse in the 3D Viewer or
* input the node ID directly in **ID** field. The selected node will be highlighted in the viewer.
Activate **Preview** to see how faces will change.
#. Click **Apply** or **Apply and Close** to confirm deletion of the specified node.
2017-12-08 19:09:48 +05:00
.. _removing_orphan_nodes_anchor:
Removing orphan nodes
#####################
There is a quick way to remove all orphan (free) nodes.
2018-05-25 22:04:48 +05:00
*To remove orphan nodes:*
2017-12-08 19:09:48 +05:00
2018-05-25 22:04:48 +05:00
.. |rmon| image:: ../images/remove_orphan_nodes_icon.png
2017-12-08 19:09:48 +05:00
2018-05-25 22:04:48 +05:00
#. Select your mesh in the Object Browser or in the 3D viewer.
#. 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.
The following Warning message box will appear:
2017-12-08 19:09:48 +05:00
.. image:: ../images/removeorphannodes.png
:align: center
2018-05-25 22:04:48 +05:00
#. Confirm nodes removal by pressing "Yes" button.
2017-12-08 19:09:48 +05:00
.. _removing_elements_anchor:
Removing elements
#################
2018-05-25 22:04:48 +05:00
*To remove an element:*
2017-12-08 19:09:48 +05:00
2018-05-25 22:04:48 +05:00
.. |rme| image:: ../images/remove_elements_icon.png
2017-12-08 19:09:48 +05:00
2018-05-25 22:04:48 +05:00
#. Select your mesh in the Object Browser or in the 3D viewer.
#. From the **Modification** menu choose **Remove** and from the associated submenu select the **Elements**, or just click *"Remove elements"* button |rme| in the toolbar.
2017-12-08 19:09:48 +05:00
2018-05-25 22:04:48 +05:00
The following dialog box will appear:
2017-12-08 19:09:48 +05:00
.. image:: ../images/removeelements.png
:align: center
2018-05-25 22:04:48 +05:00
In this dialog box you can specify one or several elements:
* choose mesh elements with the mouse in the 3D Viewer. It is possible to select a whole area with a mouse frame; or
* input the element IDs directly in **ID Elements** field. The selected elements will be highlighted in the viewer; or
* 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.
2017-12-08 19:09:48 +05:00
#. Click **Apply** or **Apply and Close** to confirm deletion of the specified elements.
.. image:: ../images/remove_nodes1.png
:align: center
.. centered::
2018-05-25 22:04:48 +05:00
The initial mesh
2017-12-08 19:09:48 +05:00
.. image:: ../images/remove_nodes2.png
:align: center
.. centered::
2018-05-25 22:04:48 +05:00
The mesh with some elements removed
2017-12-08 19:09:48 +05:00
.. _clear_mesh_anchor:
Clearing Mesh Data
##################
2018-05-25 22:04:48 +05:00
*To remove all nodes and all types of cells in your mesh at once:*
2017-12-08 19:09:48 +05:00
2018-05-25 22:04:48 +05:00
.. |clr| image:: ../images/mesh_clear.png
2017-12-08 19:09:48 +05:00
2018-05-25 22:04:48 +05:00
#. Select your mesh in the Object Browser or in the 3D viewer.
#. 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.
2017-12-08 19:09:48 +05:00
.. note::
2018-05-25 22:04:48 +05:00
This command works in a different way in different situations:
* if the mesh is computed on a geometry, then *Clear Mesh Data* removes all elements and nodes.
* 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.
2017-12-08 19:09:48 +05:00
**See Also** a sample TUI Script of a :ref:`tui_removing_nodes_and_elements` operation.