From c567b75fa90a89f3af3a668b7677e607293c904b Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Fri, 6 Jun 2025 11:39:57 +0200 Subject: [PATCH] BIM: Roof add tolerance to parallel check (#21814) Fixes #21796. --- src/Mod/BIM/ArchRoof.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/BIM/ArchRoof.py b/src/Mod/BIM/ArchRoof.py index 43b81c2878..6fb18227b4 100644 --- a/src/Mod/BIM/ArchRoof.py +++ b/src/Mod/BIM/ArchRoof.py @@ -335,11 +335,11 @@ class _Roof(ArchComponent.Component): runs = [] if ((not 0 <= profilNext2["idrel"] < numEdges) and 0.0 < profilNext2["angle"] < 90.0 - and vecCurr.getAngle(vecNext2) == math.pi): + and math.isclose(vecCurr.getAngle(vecNext2), math.pi, abs_tol=1e-7)): runs.append((self.helperCalcApex(profilCurr, profilNext2))) if ((not 0 <= profilBack2["idrel"] < numEdges) and 0.0 < profilBack2["angle"] < 90.0 - and vecCurr.getAngle(vecBack2) == math.pi): + and math.isclose(vecCurr.getAngle(vecBack2), math.pi, abs_tol=1e-7)): runs.append((self.helperCalcApex(profilCurr, profilBack2))) runs.sort() if len(runs) != 0 and runs[0] != profilCurr["run"]: