fedoo.Mesh.extract_elements
- Mesh.extract_elements(element_set: str | list, name: str = '') Mesh
Return a new mesh from the set of elements defined by element_set
- Parameters:
element_set (str|list) – The set of elements. If str is given, it should refer to an element set that exist in the dict: mesh.node_sets with the given key. If a list (or similar object) is given, it should contains the indices of the nodes.
name (str, default: "") – The name of the new Mesh
- Return type:
Notes
The new mesh keep the former element_sets dict with only the extrated elements.
The element indices of the new mesh are not the same as the former one.
The new mesh keep the initial nodes and node_sets. To also removed the nodes, a simple solution is to use the method “remove_isolated_nodes” with the new mesh.