mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Just restoring original behaviour before 4260313 when get_rectangular_perimeter prioritized x dimension.
This commit is contained in:
@@ -291,7 +291,8 @@ def get_space_net_perimeter(obj: bpy.types.Object) -> float:
|
||||
|
||||
|
||||
def get_rectangular_perimeter(obj: bpy.types.Object) -> float:
|
||||
length = get_length(obj, main_axis="x")
|
||||
"""Get object perimeter in XZ plane."""
|
||||
length = get_x(obj)
|
||||
height = get_height(obj)
|
||||
return (length + height) * 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user