Merge pull request #23502 from maxwxyz/issue-20633
Part: Improve TopoShape::findPlane
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user