Merge pull request #23502 from maxwxyz/issue-20633

Part: Improve TopoShape::findPlane
This commit is contained in:
Benjamin Nauck
2025-09-01 17:47:32 +02:00
committed by GitHub

View File

@@ -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();
}