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

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.
This commit is contained in:
dpasukhi 2022-03-03 13:19:16 +03:00
parent fcdfd45836
commit 3e1adab2d9

View File

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