From 6ca66a7dea090b553d367015a3731be126c1821f Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 20 Mar 2018 15:26:28 +0300 Subject: [PATCH] 0029595: Visualization - Wrong validation of Anchor point for Radius Dimension --- src/AIS/AIS_RadiusDimension.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AIS/AIS_RadiusDimension.cxx b/src/AIS/AIS_RadiusDimension.cxx index 64adef0cc9..435448d492 100644 --- a/src/AIS/AIS_RadiusDimension.cxx +++ b/src/AIS/AIS_RadiusDimension.cxx @@ -238,9 +238,8 @@ Standard_Boolean AIS_RadiusDimension::IsValidAnchor (const gp_Circ& theCircle, { gp_Pln aCirclePlane (theCircle.Location(), theCircle.Axis().Direction()); Standard_Real anAnchorDist = theAnchor.Distance (theCircle.Location()); - Standard_Real aRadius = myCircle.Radius(); - return Abs (anAnchorDist - aRadius) <= Precision::Confusion() + return anAnchorDist > Precision::Confusion() && aCirclePlane.Contains (theAnchor, Precision::Confusion()); }