Proper fix to the fix - octree::build uses iterator-style arguments

metadata
Edgar Velazquez-Armendariz 2013-01-25 16:26:31 -05:00
parent fb857d67e5
commit d1cc20b3ee
1 changed files with 1 additions and 1 deletions

View File

@ -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);