mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Fixed missing length unit conversion in FilledOpeningGenerator
This commit is contained in:
committed by
Ryan Schultz
parent
f576c58c05
commit
f1754ca523
@@ -568,10 +568,10 @@ class FilledOpeningGenerator:
|
|||||||
# making sure if min_x or min_z != 0 to shift the opening accordingly
|
# making sure if min_x or min_z != 0 to shift the opening accordingly
|
||||||
# to prevent something like #2784
|
# to prevent something like #2784
|
||||||
if not has_width_attribute:
|
if not has_width_attribute:
|
||||||
opening_position.x = min(v[0] for v in filling_obj.bound_box)
|
opening_position.x = min(v[0] for v in filling_obj.bound_box) / unit_scale
|
||||||
|
|
||||||
if not has_height_attribute:
|
if not has_height_attribute:
|
||||||
opening_position.z = min(v[2] for v in filling_obj.bound_box)
|
opening_position.z = min(v[2] for v in filling_obj.bound_box) / unit_scale
|
||||||
|
|
||||||
extrusion = shape_builder.extrude(
|
extrusion = shape_builder.extrude(
|
||||||
shape_builder.rectangle(size=opening_size),
|
shape_builder.rectangle(size=opening_size),
|
||||||
|
|||||||
Reference in New Issue
Block a user