Permalink
Browse files

refresh kdtree size before building the index

  • Loading branch information...
facontidavide authored and jlblancoc committed Nov 26, 2017
1 parent 899359a commit 1e9e772ce536cfb2df8f2c610761af96c0c21d57
Showing with 2 additions and 0 deletions.
  1. +2 −0 include/nanoflann.hpp
View
@@ -1216,6 +1216,8 @@ namespace nanoflann
*/
void buildIndex()
{
BaseClassRef::m_size = dataset.kdtree_get_point_count();
BaseClassRef::m_size_at_index_build = BaseClassRef::m_size;
init_vind();
this->freeIndex(*this);
BaseClassRef::m_size_at_index_build = BaseClassRef::m_size;

0 comments on commit 1e9e772

Please sign in to comment.