Do not skip thin (elongated) QuadTree leaves.

This commit is contained in:
Jean-Paul Chaput 2020-12-04 12:14:08 +01:00
parent 84d25da1b8
commit be5483a0ad
1 changed files with 2 additions and 2 deletions

View File

@ -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)