Part.find_element_neighbors_by_layer
- Part.find_element_neighbors_by_layer(start_element, layers=1)[source]
Finds element neighbors in expanding layers (rings) around a starting element.
This performs a breadth-first search on the element connectivity graph. Layer 1 is the group of elements directly touching the start_element. Layer 2 is the group of elements touching Layer 1 elements (excluding the start element and Layer 1), and so on.
- Parameters:
- start_elementcompas_fea2.model._Element
The element to start the search from.
- layersint, optional
The number of layers to search, by default 1.
- Returns:
- List[ElementsGroup]
A list of ElementsGroup objects, where each group corresponds to a layer.