mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Fix issue when updating wall x_angle with obtuse angle. See #5938
This commit is contained in:
@@ -1480,7 +1480,7 @@ class DumbWallJoiner:
|
|||||||
results["direction"] = Vector(item.ExtrudedDirection.DirectionRatios)
|
results["direction"] = Vector(item.ExtrudedDirection.DirectionRatios)
|
||||||
results["x_angle"] = Vector((0, 1)).angle_signed(Vector((y, z)))
|
results["x_angle"] = Vector((0, 1)).angle_signed(Vector((y, z)))
|
||||||
results["is_sloped"] = True
|
results["is_sloped"] = True
|
||||||
results["height"] = (item.Depth * self.unit_scale) / (1 / cos(results["x_angle"]))
|
results["height"] = (item.Depth * self.unit_scale) / abs(1 / cos(results["x_angle"]))
|
||||||
break
|
break
|
||||||
elif item.is_a("IfcBooleanClippingResult"): # should be before IfcBooleanResult check
|
elif item.is_a("IfcBooleanClippingResult"): # should be before IfcBooleanResult check
|
||||||
item = item.FirstOperand
|
item = item.FirstOperand
|
||||||
|
|||||||
Reference in New Issue
Block a user