mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
Fix issue where walls are created with obtuse x_angle. See #5938
This commit is contained in:
@@ -85,6 +85,7 @@ def get_wall_preview_data(context, relating_type):
|
||||
if x_angle > radians(90) or x_angle < radians(-90):
|
||||
height *= -1
|
||||
angle_distance = height * tan(x_angle)
|
||||
thickness *= 1 / cos(x_angle)
|
||||
|
||||
data = {}
|
||||
data["verts"] = []
|
||||
|
||||
Reference in New Issue
Block a user