Dear Luca,
Thank you very much. It now works in both
ways. Thanks for advice.
Regards,
Heena
On Fri, Jul 24, 2020 at 12:31 PM luca.heltai wrote:
> KDTree needs nanoflann to be available. Did you compile deal.II with
> nanoflann exnabled? Check in the summary.log if
KDTree needs nanoflann to be available. Did you compile deal.II with nanoflann
exnabled? Check in the summary.log if DEAL_II_WITH_NANOFLANN is ON.
RTree, on the other hand, does not require nanoflann, as it is included with
boost (and it is faster than nanoflann).
L.
> On 24 Jul 2020, at 10:05
Dear Heena,
here is a snippet to achieve what you want:
#include
namespace bgi = boost::geometry::index;
…
Point<2> p0;
const auto tree = pack_rtree(tria.get_vertices());
for (const auto &p : tree | bgi::adaptors::queried(bgi::nearest(p0, 3)))
// do something with p
std::c
Dear all,
I had tried to implement KDTree in step_1 tutoria
and header file for kdtree is added to the codel. It is as follows:
void first_grid()
{
Triangulation<2> triangulation;
GridGenerator::hyper_cube(triangulation);
triangulation.refine_global(4);
* Poi