We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 784f19d + fd41b99 commit 185dbabCopy full SHA for 185dbab
include/geode/geometry/nn_search.hpp
@@ -23,6 +23,7 @@
23
24
#pragma once
25
26
+#include <geode/basic/mapping.hpp>
27
#include <geode/basic/pimpl.hpp>
28
29
#include <geode/geometry/common.hpp>
@@ -53,6 +54,17 @@ namespace geode
53
54
return colocated_mapping.size() - nb_unique_points();
55
}
56
57
+ [[nodiscard]] geode::GenericMapping< geode::index_t >
58
+ points_mapping() const
59
+ {
60
+ geode::GenericMapping< geode::index_t > mapping;
61
+ for( const auto& p : geode::Indices{ colocated_mapping } )
62
63
+ mapping.map( p, colocated_mapping[p] );
64
+ }
65
+ return mapping;
66
67
+
68
std::vector< Point< dimension > > unique_points;
69
/*!
70
* This list has the size of the number of points in the tree.
0 commit comments