mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +00:00
Minor fix. See #2416
This commit is contained in:
@@ -1039,7 +1039,7 @@ class DumbWallJoiner:
|
|||||||
item = representation.Items[0]
|
item = representation.Items[0]
|
||||||
while True:
|
while True:
|
||||||
if item.is_a("IfcExtrudedAreaSolid"):
|
if item.is_a("IfcExtrudedAreaSolid"):
|
||||||
height = item.Depth / self.unit_scale
|
height = item.Depth * self.unit_scale
|
||||||
break
|
break
|
||||||
elif item.is_a("IfcBooleanClippingResult"):
|
elif item.is_a("IfcBooleanClippingResult"):
|
||||||
item = item.FirstOperand
|
item = item.FirstOperand
|
||||||
@@ -1150,8 +1150,8 @@ def get_material_layer_parameters(element):
|
|||||||
material = ifcopenshell.util.element.get_material(element)
|
material = ifcopenshell.util.element.get_material(element)
|
||||||
if material:
|
if material:
|
||||||
if material.is_a("IfcMaterialLayerSetUsage"):
|
if material.is_a("IfcMaterialLayerSetUsage"):
|
||||||
offset = material.OffsetFromReferenceLine / unit_scale
|
offset = material.OffsetFromReferenceLine * unit_scale
|
||||||
material = material.ForLayerSet
|
material = material.ForLayerSet
|
||||||
if material.is_a("IfcMaterialLayerSet"):
|
if material.is_a("IfcMaterialLayerSet"):
|
||||||
thickness = sum([l.LayerThickness for l in material.MaterialLayers]) / unit_scale
|
thickness = sum([l.LayerThickness for l in material.MaterialLayers]) * unit_scale
|
||||||
return {"thickness": thickness, "offset": offset}
|
return {"thickness": thickness, "offset": offset}
|
||||||
|
|||||||
Reference in New Issue
Block a user