Added more modularity in the way the KD tree is built
This commit is contained in:
parent
e8d1edf453
commit
5fa5a73104
4 changed files with 62 additions and 46 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <fstream>
|
||||
#define __KD_TREE_NUMNODES
|
||||
#include "mykdtree.hpp"
|
||||
#include "kdtree_splitters.hpp"
|
||||
|
||||
#define NTRY 100
|
||||
#define ND 3
|
||||
|
@ -12,7 +13,7 @@
|
|||
using namespace std;
|
||||
using namespace CosmoTool;
|
||||
|
||||
typedef KDTree<ND,char> MyTree;
|
||||
typedef KDTree<ND,char,ComputePrecision,KD_homogeneous_cell_splitter<ND, char> > MyTree;
|
||||
typedef KDCell<ND,char> MyCell;
|
||||
|
||||
MyCell *findNearest(MyTree::coords& xc, MyCell *cells, uint32_t Ncells)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue