1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0029595: Visualization - Wrong validation of Anchor point for Radius Dimension

This commit is contained in:
vsv 2018-03-20 15:26:28 +03:00 committed by rnv
parent 2c277b838e
commit a4b60cc6a2

View File

@ -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());
}