Fix adding transom to door #6230 (d23cfcb)

This commit is contained in:
Andrej730
2025-02-25 18:13:02 +05:00
parent f63d6b80c5
commit aaf008f007
2 changed files with 5 additions and 2 deletions
@@ -622,7 +622,7 @@ class Usecase:
window_lining_size = V(overall_width, lining_depth, window_lining_height)
window_position = V(0, 0, overall_height - window_lining_height)
frame_size = V(door_opening_width, frame_depth, frame_height)
window_lining_items, frame_items, glass_items = create_ifc_window(
current_window_items = create_ifc_window(
builder,
window_lining_size,
window_lining_thickness,
@@ -633,6 +633,9 @@ class Usecase:
glass_thickness,
window_position,
)
window_lining_items = current_window_items["Lining"]
frame_items = current_window_items["Framing"]
glass_items = current_window_items["Glazing"]
lining_offset_items = lining_items + door_items + window_lining_items + frame_items + glass_items
builder.translate(lining_offset_items, (0, lining_offset, 0))
@@ -181,7 +181,7 @@ def create_ifc_window(
glass_thickness: float,
position: np.ndarray,
x_offsets: Optional[list[float]] = None,
) -> tuple[list[ifcopenshell.entity_instance], list[ifcopenshell.entity_instance], list[ifcopenshell.entity_instance]]:
) -> dict[str, list[ifcopenshell.entity_instance]]:
"""`lining_thickness` and `x_offsets` are expected to be defined as a list,
similarly to `create_ifc_window_frame_simple` `thickness` argument"""
lining_items: list[ifcopenshell.entity_instance] = []