mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0022653: Bad performance of Open CASCADE libraries that are used by Partition Algorithm
This commit is contained in:
parent
0b97567d24
commit
aa396061a3
@ -2,7 +2,7 @@
|
|||||||
// Created: Fri Mar 8 11:07:06 1991
|
// Created: Fri Mar 8 11:07:06 1991
|
||||||
// Author: Christophe MARION
|
// Author: Christophe MARION
|
||||||
// <cma@topsn3>
|
// <cma@topsn3>
|
||||||
|
//
|
||||||
#include <Bnd_Box.ixx>
|
#include <Bnd_Box.ixx>
|
||||||
|
|
||||||
#define VoidMask 0x01
|
#define VoidMask 0x01
|
||||||
@ -749,6 +749,21 @@ Standard_Boolean Bnd_Box::IsOut (const gp_Lin& L) const
|
|||||||
|
|
||||||
Standard_Boolean Bnd_Box::IsOut (const Bnd_Box& Other) const
|
Standard_Boolean Bnd_Box::IsOut (const Bnd_Box& Other) const
|
||||||
{
|
{
|
||||||
|
//modified by NIZNHY-PKV Fri Jul 08 11:03:43 2011f
|
||||||
|
if (!Flags && !Other.Flags) {
|
||||||
|
Standard_Boolean bRet;
|
||||||
|
Standard_Real delta;
|
||||||
|
//
|
||||||
|
delta = Other.Gap + Gap;
|
||||||
|
bRet=((Xmin - Other.Xmax > delta) ||
|
||||||
|
(Other.Xmin - Xmax > delta) ||
|
||||||
|
(Ymin - Other.Ymax > delta) ||
|
||||||
|
(Other.Ymin - Ymax > delta) ||
|
||||||
|
(Zmin - Other.Zmax > delta) ||
|
||||||
|
(Other.Zmin - Zmax > delta));
|
||||||
|
return bRet;
|
||||||
|
}
|
||||||
|
//modified by NIZNHY-PKV Fri Jul 08 11:03:46 2011t
|
||||||
if (IsVoid()) return Standard_True;
|
if (IsVoid()) return Standard_True;
|
||||||
if (Other.IsVoid()) return Standard_True;
|
if (Other.IsVoid()) return Standard_True;
|
||||||
if (IsWhole()) return Standard_False;
|
if (IsWhole()) return Standard_False;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user