Mesh.vertices_where
-
Mesh.
vertices_where
(conditions, data=False)[source] Get vertices for which a certain condition or set of conditions is true.
- Parameters
conditions (dict) – A set of conditions in the form of key-value pairs. The keys should be attribute names. The values can be attribute values or ranges of attribute values in the form of min/max pairs.
data (bool, optional) – Yield the vertices and their data attributes. Default is
False
.
- Yields
key (hashable) – The next vertex that matches the condition.
2-tuple – The next vertex and its attributes, if
data=True
.