]> OCCT Git - occt.git/commitdiff
0033394: Modeling Algorithms - Wrong usage of BRepClass_FaceClassifier with 3d tolerance
authorastromko <astromko@opencascade.com>
Wed, 17 Apr 2024 17:26:33 +0000 (18:26 +0100)
committerjfa <jfa@opencascade.com>
Thu, 18 Apr 2024 17:34:54 +0000 (18:34 +0100)
Fixed a found error from CR3394 branch.

src/BRepExtrema/BRepExtrema_DistanceSS.cxx

index 1f61d2c54db313a98a62058264cada04f33db654..873e8e6cc361a3b8b6b3f2a9300ddd3322a45ad8 100644 (file)
@@ -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;