mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +00:00
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:
@@ -288,7 +288,7 @@ class DumbSlabPlaner:
|
|||||||
"geometry.add_slab_representation",
|
"geometry.add_slab_representation",
|
||||||
tool.Ifc.get(),
|
tool.Ifc.get(),
|
||||||
context=body_context,
|
context=body_context,
|
||||||
depth=thickness,
|
depth=thickness * self.unit_scale,
|
||||||
x_angle=x_angle,
|
x_angle=x_angle,
|
||||||
)
|
)
|
||||||
for inverse in tool.Ifc.get().get_inverse(representation):
|
for inverse in tool.Ifc.get().get_inverse(representation):
|
||||||
@@ -313,7 +313,7 @@ class DumbSlabPlaner:
|
|||||||
"geometry.add_slab_representation",
|
"geometry.add_slab_representation",
|
||||||
tool.Ifc.get(),
|
tool.Ifc.get(),
|
||||||
context=body_context,
|
context=body_context,
|
||||||
depth=thickness,
|
depth=thickness * self.unit_scale,
|
||||||
x_angle=x_angle,
|
x_angle=x_angle,
|
||||||
)
|
)
|
||||||
ifcopenshell.api.run(
|
ifcopenshell.api.run(
|
||||||
|
|||||||
Reference in New Issue
Block a user