mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Fix bug where openings were invalidly contained in a container
This commit is contained in:
@@ -170,7 +170,11 @@ class Root(bonsai.core.tool.Root):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_containable(cls, element: ifcopenshell.entity_instance) -> bool:
|
def is_containable(cls, element: ifcopenshell.entity_instance) -> bool:
|
||||||
if element.is_a("IfcElement") or element.is_a("IfcGrid") or element.is_a("IfcAnnotation"):
|
if (
|
||||||
|
(element.is_a("IfcElement") and not element.is_a("IfcFeatureElement"))
|
||||||
|
or element.is_a("IfcGrid")
|
||||||
|
or element.is_a("IfcAnnotation")
|
||||||
|
):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user