From cc70fee4d74a08ee35cb493d2052daf53acb5919 Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Mon, 5 May 2025 09:24:16 +0200 Subject: [PATCH] BIM: correct planar check to avoid vertical/horizontal misclassification --- src/Mod/BIM/ArchComponent.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Mod/BIM/ArchComponent.py b/src/Mod/BIM/ArchComponent.py index ec4f19f6f2..1c2220fec6 100644 --- a/src/Mod/BIM/ArchComponent.py +++ b/src/Mod/BIM/ArchComponent.py @@ -1012,10 +1012,11 @@ class Component(ArchIFC.IfcProduct): obj.PerimeterLength = 0 return else: - if ((ang > 1.57) and - (ang < 1.571) and - f.Surface.isPlanar()): - a += f.Area + if ((ang > 1.57) and (ang < 1.571)): + # Ignore non-planar vertical surfaces for area calculation + # See https://github.com/FreeCAD/FreeCAD/issues/14687 + if f.Surface.isPlanar(): + a += f.Area else: fset.append(f)