Fix bug of NodeSearcher: search fails if point is outside the mesh on the distance more than octree node precision value

This commit is contained in:
vsr 2010-06-17 19:00:18 +00:00
parent 6ea1e8f320
commit 97577f2731

View File

@ -5977,7 +5977,7 @@ struct SMESH_NodeSearcherImpl: public SMESH_NodeSearcher
SMESH_OctreeNode* tree = *trIt; SMESH_OctreeNode* tree = *trIt;
if ( !tree->isLeaf() ) // put children to the queue if ( !tree->isLeaf() ) // put children to the queue
{ {
if ( !tree->isInside( &pointNode, myHalfLeafSize )) continue; //if ( !tree->isInside( &pointNode, myHalfLeafSize )) continue;
SMESH_OctreeNodeIteratorPtr cIt = tree->GetChildrenIterator(); SMESH_OctreeNodeIteratorPtr cIt = tree->GetChildrenIterator();
while ( cIt->more() ) while ( cIt->more() )
treeList.push_back( cIt->next() ); treeList.push_back( cIt->next() );