BUG: indexedOctree: construct with no points inside bb

This commit is contained in:
mattijs
2013-09-20 16:43:16 +01:00
parent 04a55776f7
commit 2989a25d44

View File

@ -2487,6 +2487,12 @@ Foam::indexedOctree<Type>::indexedOctree
compactI
);
if (compactI == 0)
{
// Did not put contents anywhere - are outside bb!
break;
}
if (compactI == contents_.size())
{
// Transferred all contents to contents_ (in order breadth first)