mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
DumbWallJoiner to work with IfcBooleanResult correctly #3831
It wasn't detecting extrusion as part of IfcBooleanResult and was using default wall data as fallback.
Occured after 0044ef5
Solves #3831
Related to #3709
This commit is contained in:
@@ -1262,8 +1262,13 @@ class DumbWallJoiner:
|
||||
results["is_sloped"] = True
|
||||
results["height"] = (item.Depth * self.unit_scale) / (1 / cos(results["x_angle"]))
|
||||
break
|
||||
elif item.is_a("IfcBooleanClippingResult"):
|
||||
elif item.is_a("IfcBooleanClippingResult"): # should be before IfcBooleanResult check
|
||||
item = item.FirstOperand
|
||||
elif item.is_a("IfcBooleanResult"):
|
||||
if item.FirstOperand.is_a("IfcExtrudedAreaSolid") or item.FirstOperand.is_a("IfcBooleanResult"):
|
||||
item = item.FirstOperand
|
||||
else:
|
||||
item = item.SecondOperand
|
||||
else:
|
||||
break
|
||||
return results
|
||||
|
||||
Reference in New Issue
Block a user