mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +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",
|
"geometry.add_wall_representation",
|
||||||
tool.Ifc.get(),
|
tool.Ifc.get(),
|
||||||
context=self.body_context,
|
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"],
|
offset=self.layers["offset"],
|
||||||
length=self.length,
|
length=self.length,
|
||||||
height=self.height,
|
height=self.height,
|
||||||
@@ -1092,7 +1092,7 @@ class DumbWallJoiner:
|
|||||||
height=height,
|
height=height,
|
||||||
x_angle=x_angle,
|
x_angle=x_angle,
|
||||||
offset=layers["offset"],
|
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,
|
clippings=self.clippings,
|
||||||
booleans=tool.Model.get_manual_booleans(element),
|
booleans=tool.Model.get_manual_booleans(element),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user