From: jgv Date: Mon, 19 Sep 2022 15:01:33 +0000 (+0300) Subject: Correct the condition X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=648d2693156ff21046aefca1953f91f37ec33f61;p=modules%2Fgeom.git Correct the condition --- diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx index cb2b40a37..ca8f938df 100644 --- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx @@ -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);