Skip to content
Snippets Groups Projects
Commit 889d2cb1 authored by Tom Fischer's avatar Tom Fischer
Browse files

[GL] OctTree: Points are already outside if they lie on the upper bound.

parent 684f8f71
No related branches found
No related tags found
No related merge requests found
......@@ -268,7 +268,7 @@ bool OctTree<POINT, MAX_POINTS>::isOutside(POINT * pnt) const
{
if ((*pnt)[0] < _ll[0] || (*pnt)[1] < _ll[1] || (*pnt)[2] < _ll[2])
return true;
if ((*pnt)[0] > _ur[0] || (*pnt)[1] > _ur[1] || (*pnt)[2] > _ur[2])
if ((*pnt)[0] >= _ur[0] || (*pnt)[1] >= _ur[1] || (*pnt)[2] >= _ur[2])
return true;
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment