fix index : should not be 1 but i

This commit is contained in:
Jane Tournois 2021-04-12 14:16:55 +02:00 committed by Jane Tournois
parent 4b12f70605
commit e047d53193
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ private:
for (std::size_t i = 0; i < 3; i++)
{
res[i] = (std::size_t)ceil((minMax[3 + i] - minMax[i]) / cellSize);
if(res[1] == 0)
if(res[i] == 0)
res[i] = 1;
}