From 6500a872eb8ccc632dd7b705c86418ca8ec41a92 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 5 Apr 2025 22:06:08 +0200 Subject: [PATCH] Part: Improve TopoShape::findPlane Since OCC 7.7 using GeomLib_IsPlanarSurface without a custom tolerance may fail because the default value is too strict. To fix this problem forward the passed tolerance value to GeomLib_IsPlanarSurface. This fixes issue 20633 --- src/Mod/Part/App/TopoShape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/App/TopoShape.cpp b/src/Mod/Part/App/TopoShape.cpp index 28cc7198ce..6e4fce8e24 100644 --- a/src/Mod/Part/App/TopoShape.cpp +++ b/src/Mod/Part/App/TopoShape.cpp @@ -3970,7 +3970,7 @@ bool TopoShape::findPlane(gp_Pln& pln, double tol, double atol) const else { TopLoc_Location loc; Handle(Geom_Surface) surf = BRep_Tool::Surface(face, loc); - GeomLib_IsPlanarSurface check(surf); + GeomLib_IsPlanarSurface check(surf, tol); if (check.IsPlanar()) { plane = check.Plan(); }