Proper fix to the fix - octree::build uses iterator-style arguments
parent
fb857d67e5
commit
d1cc20b3ee
|
@ -140,7 +140,7 @@ public:
|
|||
perm[i] = i;
|
||||
|
||||
/* Build the kd-tree and compute a suitable permutation of the elements */
|
||||
m_root = build(m_aabb, 0, &perm[0], &temp[0], &perm[0], &perm[m_items.size()-1]);
|
||||
m_root = build(m_aabb, 0, &perm[0], &temp[0], &perm[0], &perm[0] + m_items.size());
|
||||
|
||||
/* Apply the permutation */
|
||||
permute_inplace(&m_items[0], perm);
|
||||
|
|
Loading…
Reference in New Issue