Mesh.faces_where_predicate
-
Mesh.
faces_where_predicate
(predicate, data=False)[source] Get faces for which a certain condition or set of conditions is true using a lambda function.
- Parameters
predicate (callable) – The condition you want to evaluate. The callable takes 2 parameters:
key
,attr
and should returnTrue
orFalse
.data (bool, optional) – Yield the faces and their data attributes. Default is
False
.
- Yields
key (hashable) – The next face that matches the condition.
2-tuple – The next face and its attributes, if
data=True
.
Examples
>>>