mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
See #4826. Fix Qto calculator which assumes that openings have a predefined type (in IFC2X3 they don't)
This commit is contained in:
@@ -644,11 +644,8 @@ def get_opening_area(
|
||||
|
||||
bl_opening_obj = bpy.data.objects.new("MyObject", mesh)
|
||||
|
||||
opening_type = (
|
||||
ifc_opening_element.PredefinedType
|
||||
if ifc_opening_element.PredefinedType is not None
|
||||
else get_opening_type(bl_opening_obj, obj)
|
||||
)
|
||||
if not (opening_type := ifcopenshell.util.element.get_predefined_type(ifc_opening_element)):
|
||||
opening_type = get_opening_type(bl_opening_obj, obj)
|
||||
|
||||
if ignore_recesses and opening_type == "RECESS":
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user