BIM: correct planar check to avoid vertical/horizontal misclassification

This commit is contained in:
Furgo
2025-05-23 10:14:40 +02:00
committed by Yorik van Havre
parent f5737a9c5a
commit cc70fee4d7
+5 -4
View File
@@ -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)