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
0021869: [CEA 672] Clipping always apply even with auto-apply not checked
[modules/smesh.git]
/
src
/
SMESHUtils
/
SMESH_OctreeNode.cxx
diff --git
a/src/SMESHUtils/SMESH_OctreeNode.cxx
b/src/SMESHUtils/SMESH_OctreeNode.cxx
index f735011e6ea84b6a0bf94e64e0a705016def0008..d14a50a2465106b190ee8ad57afc373a14ab16b5 100644
(file)
--- a/
src/SMESHUtils/SMESH_OctreeNode.cxx
+++ b/
src/SMESHUtils/SMESH_OctreeNode.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
1
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
2
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
@@
-249,7
+249,9
@@
void SMESH_OctreeNode::FindCoincidentNodes (TIDSortedNodeSet& theSetOfNodes,
const int maxLevel,
const int maxNbNodes)
{
const int maxLevel,
const int maxNbNodes)
{
- SMESH_OctreeNode theOctreeNode(theSetOfNodes, maxLevel, maxNbNodes, theTolerance);
+ // VSR 14/10/2011: limit max number of the levels in order to avoid endless recursing
+ const int MAX_LEVEL = 10;
+ SMESH_OctreeNode theOctreeNode(theSetOfNodes, maxLevel < 0 ? MAX_LEVEL : maxLevel, maxNbNodes, theTolerance);
theOctreeNode.FindCoincidentNodes (&theSetOfNodes, theTolerance, theGroupsOfNodes);
}
theOctreeNode.FindCoincidentNodes (&theSetOfNodes, theTolerance, theGroupsOfNodes);
}