DumpSlabPlaner.change_thickness to use si units #4004

It was providing project units to `geometry.add_slab_representation` resulting and then they were converted to project units once again during `geometry.add_slab_representation`.
This commit is contained in:
Andrej730
2023-11-13 15:37:50 +05:00
parent c5d38227fc
commit 608b3e5401
@@ -288,7 +288,7 @@ class DumbSlabPlaner:
"geometry.add_slab_representation",
tool.Ifc.get(),
context=body_context,
depth=thickness,
depth=thickness * self.unit_scale,
x_angle=x_angle,
)
for inverse in tool.Ifc.get().get_inverse(representation):
@@ -313,7 +313,7 @@ class DumbSlabPlaner:
"geometry.add_slab_representation",
tool.Ifc.get(),
context=body_context,
depth=thickness,
depth=thickness * self.unit_scale,
x_angle=x_angle,
)
ifcopenshell.api.run(