Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#24666 [CEA][Windows] BLSURPLUGIN compilation issue
[modules/smesh.git]
/
src
/
SMESHUtils
/
SMESH_Tree.hxx
diff --git
a/src/SMESHUtils/SMESH_Tree.hxx
b/src/SMESHUtils/SMESH_Tree.hxx
index 16ab6b80570d9e687f740690e584e8429ee8ffbf..a5c01cb8e975b930d6246a465f1390d4b6fea7fa 100644
(file)
--- a/
src/SMESHUtils/SMESH_Tree.hxx
+++ b/
src/SMESHUtils/SMESH_Tree.hxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
16
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
21
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-31,6
+31,8
@@
#include "SMESH_Utils.hxx"
#include "SMESH_Utils.hxx"
+const double theEnlargeFactor = 1. + 1e-10;
+
//================================================================================
// Data limiting the tree height
struct SMESH_TreeLimit {
//================================================================================
// Data limiting the tree height
struct SMESH_TreeLimit {
@@
-160,6
+162,7
@@
void SMESH_Tree<BND_BOX,NB_CHILDREN>::compute()
{
if ( !myLimit ) myLimit = new SMESH_TreeLimit();
myBox = buildRootBox();
{
if ( !myLimit ) myLimit = new SMESH_TreeLimit();
myBox = buildRootBox();
+ enlargeByFactor( myBox, theEnlargeFactor );
if ( myLimit->myMinBoxSize > 0. && maxSize() <= myLimit->myMinBoxSize )
myIsLeaf = true;
else
if ( myLimit->myMinBoxSize > 0. && maxSize() <= myLimit->myMinBoxSize )
myIsLeaf = true;
else
@@
-227,7
+230,7
@@
void SMESH_Tree<BND_BOX,NB_CHILDREN>::buildChildren()
myChildren[i]->myLimit = myLimit;
myChildren[i]->myLevel = myLevel + 1;
myChildren[i]->myBox = newChildBox( i );
myChildren[i]->myLimit = myLimit;
myChildren[i]->myLevel = myLevel + 1;
myChildren[i]->myBox = newChildBox( i );
- enlargeByFactor( myChildren[i]->myBox,
1. + 1e-10
);
+ enlargeByFactor( myChildren[i]->myBox,
theEnlargeFactor
);
if ( myLimit->myMinBoxSize > 0. && myChildren[i]->maxSize() <= myLimit->myMinBoxSize )
myChildren[i]->myIsLeaf = true;
}
if ( myLimit->myMinBoxSize > 0. && myChildren[i]->maxSize() <= myLimit->myMinBoxSize )
myChildren[i]->myIsLeaf = true;
}