mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +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)
|
bl_opening_obj = bpy.data.objects.new("MyObject", mesh)
|
||||||
|
|
||||||
opening_type = (
|
if not (opening_type := ifcopenshell.util.element.get_predefined_type(ifc_opening_element)):
|
||||||
ifc_opening_element.PredefinedType
|
opening_type = get_opening_type(bl_opening_obj, obj)
|
||||||
if ifc_opening_element.PredefinedType is not None
|
|
||||||
else get_opening_type(bl_opening_obj, obj)
|
|
||||||
)
|
|
||||||
|
|
||||||
if ignore_recesses and opening_type == "RECESS":
|
if ignore_recesses and opening_type == "RECESS":
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user