Fills in a list of all the leafs touched and starts with the head node.
(float[] mins, float[] maxs, int[] list, int listsize, int headnode, int[] topnode)
| 986 | |
| 987 | /** Fills in a list of all the leafs touched and starts with the head node. */ |
| 988 | private int CM_BoxLeafnums_headnode(float[] mins, float[] maxs, int[] list, int listsize, int headnode, int[] topnode) { |
| 989 | leaf_list = list; |
| 990 | leaf_count = 0; |
| 991 | leaf_maxcount = listsize; |
| 992 | leaf_mins = mins; |
| 993 | leaf_maxs = maxs; |
| 994 | |
| 995 | leaf_topnode = -1; |
| 996 | |
| 997 | CM_BoxLeafnums_r(headnode); |
| 998 | |
| 999 | if (topnode != null) |
| 1000 | topnode[0] = leaf_topnode; |
| 1001 | |
| 1002 | return leaf_count; |
| 1003 | } |
| 1004 | |
| 1005 | /** Fills in a list of all the leafs touched. */ |
| 1006 | public int CM_BoxLeafnums(float[] mins, float[] maxs, int[] list, int listsize, int[] topnode) { |
no test coverage detected