From 6cc92cb1627bc697e9000ed4d55a391571465124 Mon Sep 17 00:00:00 2001 From: jgv Date: Mon, 19 Sep 2022 18:01:33 +0300 Subject: [PATCH] Correct the condition --- src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx index a24237e09..cd14eaaa3 100644 --- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx @@ -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); -- 2.39.2