dijkstra is now bleching fast
deleting from the grid is now bleaching fast added new helper methods many new test-cases many new methods for geo classes and others added a bunch of new grid-walkers
This commit is contained in:
@@ -18,13 +18,13 @@ public:
|
||||
static void add(const char* comp, const std::string what, const bool nl = true) {
|
||||
addComp(comp);
|
||||
std::cout << what;
|
||||
if (nl) {std::cout << std::endl;}
|
||||
if (nl) {std::cout << std::endl;} else {std::cout << std::flush;}
|
||||
}
|
||||
|
||||
static void add(const std::string& component, const std::string what, const bool nl = true) {
|
||||
addComp(component.c_str());
|
||||
std::cout << what;
|
||||
if (nl) {std::cout << std::endl;}
|
||||
if (nl) {std::cout << std::endl;} else {std::cout << std::flush;}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -37,9 +37,10 @@ public:
|
||||
/** ctor */
|
||||
KNN(DataStructure& data) : tree(dim, data, nanoflann::KDTreeSingleIndexAdaptorParams(maxLeafs)), data(data) {
|
||||
|
||||
Log::add(name, "building kd-tree for " + std::to_string(data.kdtree_get_point_count()) + " elements");
|
||||
Log::add(name, "building kd-tree for " + std::to_string(data.kdtree_get_point_count()) + " elements", false);
|
||||
Log::tick();
|
||||
tree.buildIndex();
|
||||
Log::add(name, "done");
|
||||
Log::tock();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user