Skip to content

Commit

Permalink
return box for no child
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Sep 9, 2022
1 parent 8040956 commit f6edd96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ref_oct.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ REF_FCN static REF_STATUS ref_oct_contains_node(REF_OCT ref_oct, REF_DBL *xyz,
return REF_SUCCESS;
}
if (ref_oct->children[8 * current] == REF_EMPTY) {
REF_INT i;
for (i = 0; i < 6; i++) node_bbox[i] = bbox[i];
*node = current;
return REF_SUCCESS;
}
Expand Down

0 comments on commit f6edd96

Please sign in to comment.