From 8a07f71c283d6252b9dd67dac46ec15f988bd119 Mon Sep 17 00:00:00 2001 From: Lukas Schattenhofer Date: Tue, 18 Jun 2024 12:05:47 +0200 Subject: [PATCH] BIM: ArchComponent Only counts planar surfaces as vertical areas --- src/Mod/BIM/ArchComponent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/BIM/ArchComponent.py b/src/Mod/BIM/ArchComponent.py index fdefc6ef96..f15048d725 100644 --- a/src/Mod/BIM/ArchComponent.py +++ b/src/Mod/BIM/ArchComponent.py @@ -1015,7 +1015,9 @@ class Component(ArchIFC.IfcProduct): obj.PerimeterLength = 0 return else: - if (ang > 1.57) and (ang < 1.571): + if ((ang > 1.57) and + (ang < 1.571) and + f.Surface.isPlanar()): a += f.Area else: fset.append(f)