mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
Parametric roof geometry is now whitelisted for IfcSlab.ROOF and IfcCovering.ROOFING too.
This commit is contained in:
@@ -425,8 +425,14 @@ def update_roof_modifier_ifc_data(context: bpy.types.Context) -> None:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
# type attributes
|
# type attributes
|
||||||
if props.roof_type == "HIP/GABLE ROOF":
|
ifc_class = element.is_a()
|
||||||
element.PredefinedType = "GABLE_ROOF" if roof_is_gabled() else "HIP_ROOF"
|
if ifc_class in ("IfcRoof", "IfcRoofType"):
|
||||||
|
if props.roof_type == "HIP/GABLE ROOF":
|
||||||
|
element.PredefinedType = "GABLE_ROOF" if roof_is_gabled() else "HIP_ROOF"
|
||||||
|
elif ifc_class in ("IfcSlab", "IfcSlabType"):
|
||||||
|
element.PredefinedType = "ROOF"
|
||||||
|
elif ifc_class in ("IfcCoveringType", "IfcCoveringType"):
|
||||||
|
element.PredefinedType = "ROOFING"
|
||||||
|
|
||||||
tool.Model.add_body_representation(obj)
|
tool.Model.add_body_representation(obj)
|
||||||
|
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ class IfcClassData:
|
|||||||
templates.extend([None, ("STAIR", "Stair", "Parametric stair")])
|
templates.extend([None, ("STAIR", "Stair", "Parametric stair")])
|
||||||
elif ifc_class in ("IfcRailingType", "IfcRailing"):
|
elif ifc_class in ("IfcRailingType", "IfcRailing"):
|
||||||
templates.extend([None, ("RAILING", "Railing", "Parametric railing")])
|
templates.extend([None, ("RAILING", "Railing", "Parametric railing")])
|
||||||
elif ifc_class in ("IfcRoofType", "IfcRoof"):
|
elif ifc_class in ("IfcRoofType", "IfcRoof", "IfcSlabType", "IfcSlab", "IfcCovering", "IfcCoveringType"):
|
||||||
templates.extend([None, ("ROOF", "Roof", "Parametric roof with a constant pitch")])
|
templates.extend([None, ("ROOF", "Roof", "Parametric roof with a constant pitch")])
|
||||||
elif ifc_class and "Segment" in ifc_class:
|
elif ifc_class and "Segment" in ifc_class:
|
||||||
templates.extend(
|
templates.extend(
|
||||||
|
|||||||
Reference in New Issue
Block a user