fedoo.Mesh.get_elements_from_nodes
- Mesh.get_elements_from_nodes(node_set: str | list[int], all_nodes: bool = True) list
Return a list of elements that are build with the nodes given in node_set
- Parameters:
node_set (str|list) – The set of nodes. If str is given, it should refer to a node 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.
all_nodes (bool (default=True)) – If True, get only elements whose nodes are all in node_set. If False, get elements that have at least 1 node in node set.
- Return type:
list of element indices