]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Correct the condition
authorjgv <jgv@opencascade.com>
Mon, 19 Sep 2022 15:01:33 +0000 (18:01 +0300)
committerjfa <jfa@opencascade.com>
Fri, 4 Nov 2022 10:11:07 +0000 (13:11 +0300)
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx

index a24237e09cf8e9509faa002b703a6f54cd38c723..cd14eaaa32dd0a5aa6637f6522a0701648808440 100644 (file)
@@ -3452,8 +3452,8 @@ Standard_Real GEOMImpl_IMeasureOperations::GetPreciseProximity(Handle(GEOM_Objec
   Standard_Real aResultValue = aCoarseProximity.GetValue();
 
   // call precise calculator only if at least one point is in the middle of the shape
-  if (aStatus1 != BRepExtrema_ProximityDistTool::ProxPnt_Status_BORDER &&
-      aStatus2 != BRepExtrema_ProximityDistTool::ProxPnt_Status_BORDER)
+  if (aStatus1 == BRepExtrema_ProximityDistTool::ProxPnt_Status_MIDDLE ||
+      aStatus2 == BRepExtrema_ProximityDistTool::ProxPnt_Status_MIDDLE)
   {
     GEOMImpl_IProximity aFineProximity(aProximityFuncFine);
     aFineProximity.SetShapes(aShape1, aShape2);