From: dpasukhi Date: Thu, 3 Mar 2022 10:19:16 +0000 (+0300) Subject: Data Exchange, Step Import - Incorrect computing of PMI text location X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=3e1adab2d96d1964a072cb9c1265e44f89685e41;p=occt.git Data Exchange, Step Import - Incorrect computing of PMI text location Fixed problem with too large box of the representation. In this case incorrect annotation plane is used as internal location. --- diff --git a/src/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/STEPCAFControl/STEPCAFControl_Reader.cxx index 5222f3a912..c2e825b11c 100644 --- a/src/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -2043,12 +2043,7 @@ void readAnnotation(const Handle(XSControl_TransferReader)& theTR, { Standard_Real aXmin, aYmin, aZmin, aXmax, aYmax, aZmax; aBox.Get(aXmin, aYmin, aZmin, aXmax, aYmax, aZmax); - if (isHasPlane && !aBox.IsOut(aPlaneAxes.Location())) { - aPtext = aPlaneAxes.Location(); - } - else { - aPtext = gp_Pnt((aXmin + aXmax) * 0.5, (aYmin + aYmax) * 0.5, (aZmin + aZmax) * 0.5); - } + aPtext = gp_Pnt((aXmin + aXmax) * 0.5, (aYmin + aYmax) * 0.5, (aZmin + aZmax) * 0.5); } else { aPtext = aPlaneAxes.Location();