Fix bug in cg::kdtree::insert
This commit is contained in:
parent
2f75df3c91
commit
08ca6ab21b
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ namespace psemek::cg
|
||||||
if (node_point == point)
|
if (node_point == point)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int child = (node.point[split_axis] < point[split_axis]) ? 0 : 1;
|
int child = (point[split_axis] < node_point[split_axis]) ? 0 : 1;
|
||||||
|
|
||||||
if (node.children[child] == null)
|
if (node.children[child] == null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue