get_top_area to calculate area for the roof #5899

This commit is contained in:
Andrej730
2024-12-27 18:20:53 +05:00
parent 6c6e40b07c
commit d55a291589
3 changed files with 11 additions and 2 deletions
@@ -532,6 +532,10 @@ def get_max_side_area(geometry: ShapeType) -> float:
return max(get_side_area(geometry, axis="X"), get_side_area(geometry, axis="Y"), get_side_area(geometry, axis="Z"))
def get_top_area(geometry: ShapeType) -> float:
return get_side_area(geometry, axis="Z", angle=45)
def get_footprint_area(
geometry: ShapeType,
axis: AXIS_LITERAL = "Z",