Do not skip thin (elongated) QuadTree leaves.
This commit is contained in:
parent
84d25da1b8
commit
be5483a0ad
|
@ -851,8 +851,8 @@ void QuadTree_GosUnder::Locator::progress()
|
||||||
_currentQuadTree = _currentQuadTree->_getNextQuadTree(_area);
|
_currentQuadTree = _currentQuadTree->_getNextQuadTree(_area);
|
||||||
if (not _currentQuadTree) break;
|
if (not _currentQuadTree) break;
|
||||||
if ( (_threshold <= 0)
|
if ( (_threshold <= 0)
|
||||||
or ( (_currentQuadTree->getBoundingBox().getWidth () > _threshold)
|
or ( (_currentQuadTree->getBoundingBox().getWidth () > _threshold)
|
||||||
and (_currentQuadTree->getBoundingBox().getHeight() > _threshold)) )
|
or (_currentQuadTree->getBoundingBox().getHeight() > _threshold)) )
|
||||||
break;
|
break;
|
||||||
// cerr << "Pruning QuadTree:" << _currentQuadTree
|
// cerr << "Pruning QuadTree:" << _currentQuadTree
|
||||||
// << " _threshold:" << DbU::getValueString(_threshold)
|
// << " _threshold:" << DbU::getValueString(_threshold)
|
||||||
|
|
Loading…
Reference in New Issue