From dd306ad971bcc01d76a4b893cd7c0ce417f1d265 Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Thu, 3 Mar 2022 13:19:16 +0300 Subject: [PATCH] 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. --- src/STEPCAFControl/STEPCAFControl_Reader.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/STEPCAFControl/STEPCAFControl_Reader.cxx index 41c6e87882..ac50c771bb 100644 --- a/src/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -2394,12 +2394,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();