Fix #2523. Extrusion depth now reflects perpendicular depth

This commit is contained in:
Dion Moult
2022-10-26 22:24:18 +11:00
parent fb2989c17f
commit e22ebfbf94
4 changed files with 17 additions and 13 deletions
@@ -59,7 +59,7 @@ class Usecase:
self.file.createIfcArbitraryClosedProfileDef("AREA", None, curve),
None,
extrusion_direction,
self.convert_si_to_unit(self.settings["depth"]),
self.convert_si_to_unit(self.settings["depth"]) * 1 / cos(self.settings["x_angle"]),
)
if self.settings["clippings"]:
return self.apply_clippings(extrusion)