mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Maintaining the MaterialLayer thickness when X_Angle is used (#2525)
This commit is contained in:
@@ -611,7 +611,7 @@ class DumbWallGenerator:
|
||||
"geometry.add_wall_representation",
|
||||
tool.Ifc.get(),
|
||||
context=self.body_context,
|
||||
thickness=self.layers["thickness"],
|
||||
thickness=self.layers["thickness"] * 1/cos(self.x_angle), #1/cos(self.x_angle) maintains the correct MaterialLayer thickness upon rotation
|
||||
offset=self.layers["offset"],
|
||||
length=self.length,
|
||||
height=self.height,
|
||||
@@ -1092,7 +1092,7 @@ class DumbWallJoiner:
|
||||
height=height,
|
||||
x_angle=x_angle,
|
||||
offset=layers["offset"],
|
||||
thickness=layers["thickness"],
|
||||
thickness=layers["thickness"] * 1/cos(x_angle), #1/cos(x_angle) maintains the correct MaterialLayer thickness upon rotation
|
||||
clippings=self.clippings,
|
||||
booleans=tool.Model.get_manual_booleans(element),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user