knn_octree.h 639 B

12345678910111213141516171819
  1. #ifndef IGL_KNN_OCTREE
  2. #define IGL_KNN_OCTREE
  3. #include <Eigen/Core>
  4. namespace igl
  5. {
  6. void knn_octree(const Eigen::MatrixXd & P,
  7. const int & k,
  8. const std::vector<std::vector<int> > & point_indices,
  9. const std::vector<Eigen::Matrix<int,8,1>, Eigen::aligned_allocator<Eigen::Matrix<int,8,1>>> & children,
  10. const std::vector<Eigen::RowVector3d, Eigen::aligned_allocator<Eigen::RowVector3d>> & centers,
  11. const std::vector<double> & widths,
  12. Eigen::MatrixXi & I
  13. );
  14. }
  15. #ifndef IGL_STATIC_LIBRARY
  16. # include "knn_octree.cpp"
  17. #endif
  18. #endif