Allow tree.select(BRepElement)

This commit is contained in:
Thomas Krijnen
2021-11-07 19:49:37 +01:00
parent 1cdf695891
commit e0e8281a1e
3 changed files with 12 additions and 1 deletions
@@ -146,7 +146,7 @@ class tree(ifcopenshell_wrapper.tree):
return value
args = [self, unwrap(value)]
if isinstance(value, entity_instance):
if isinstance(value, (entity_instance, ifcopenshell_wrapper.BRepElement)):
args.append(kwargs.get("completely_within", False))
if "extend" in kwargs:
args.append(kwargs["extend"])