1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024042: Performance improvements: Foundation Classes

Removed code under former __OPTIM_ARRAY macro
This commit is contained in:
Roman Lygin
2013-07-04 14:31:57 +04:00
parent 4bee43a928
commit 1145e2bc72
14 changed files with 245 additions and 264 deletions

View File

@@ -264,9 +264,8 @@ Standard_Boolean Bnd_Box2d::IsOut (const Bnd_Box2d& Other) const
else if (Other.IsWhole()) return Standard_False;
else if (Other.IsVoid()) return Standard_True;
else {
Bnd_Box2d OtherBox2d = Other; // DownEqual
Standard_Real OXmin,OXmax,OYmin,OYmax;
OtherBox2d.Get(OXmin,OYmin,OXmax,OYmax);
Other.Get(OXmin,OYmin,OXmax,OYmax);
if (!(Flags & XminMask) && (OXmax < (Xmin-Gap))) return Standard_True;
else if (!(Flags & XmaxMask) && (OXmin > (Xmax+Gap))) return Standard_True;
else if (!(Flags & YminMask) && (OYmax < (Ymin-Gap))) return Standard_True;