1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +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 bugmaster
parent 834f289709
commit 6ca66a7dea

View File

@ -238,9 +238,8 @@ Standard_Boolean AIS_RadiusDimension::IsValidAnchor (const gp_Circ& theCircle,
{ {
gp_Pln aCirclePlane (theCircle.Location(), theCircle.Axis().Direction()); gp_Pln aCirclePlane (theCircle.Location(), theCircle.Axis().Direction());
Standard_Real anAnchorDist = theAnchor.Distance (theCircle.Location()); 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()); && aCirclePlane.Contains (theAnchor, Precision::Confusion());
} }