]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Correct the condition jgv/29468
authorjgv <jgv@opencascade.com>
Mon, 19 Sep 2022 15:01:33 +0000 (18:01 +0300)
committerjgv <jgv@opencascade.com>
Mon, 19 Sep 2022 15:01:33 +0000 (18:01 +0300)
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx

index cb2b40a3793c588c7a1f2e3ef511713bb5820e88..ca8f938df72fcfae8bebbef0de335a9e69030d05 100644 (file)
@@ -3115,8 +3115,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);