From f274e56f039b51b05e44a488de0228886986e5d7 Mon Sep 17 00:00:00 2001 From: astromko Date: Wed, 17 Apr 2024 18:26:33 +0100 Subject: [PATCH] 0033394: Modeling Algorithms - Wrong usage of BRepClass_FaceClassifier with 3d tolerance Fixed a found error from CR3394 branch. --- src/BRepExtrema/BRepExtrema_DistanceSS.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BRepExtrema/BRepExtrema_DistanceSS.cxx b/src/BRepExtrema/BRepExtrema_DistanceSS.cxx index 1f61d2c54d..873e8e6cc3 100644 --- a/src/BRepExtrema/BRepExtrema_DistanceSS.cxx +++ b/src/BRepExtrema/BRepExtrema_DistanceSS.cxx @@ -1061,7 +1061,7 @@ void BRepExtrema_DistanceSS::Perform (const TopoDS_Face& theS1, Dstmin = sqrt(Dstmin); if ((Dstmin < myDstRef - myEps) || (fabs(Dstmin - myDstRef) < myEps)) { - const Standard_Real tol2d1 = BRep_Tool::Tolerance2d(theS2, BRep_Tool::Tolerance(theS1)); + const Standard_Real tol2d1 = BRep_Tool::Tolerance2d(theS1, BRep_Tool::Tolerance(theS1)); const Standard_Real tol2d2 = BRep_Tool::Tolerance2d(theS2, BRep_Tool::Tolerance(theS2)); gp_Pnt Pt1, Pt2;