Re: [deal.II] KDTree implementation error

2020-07-24 Thread heena patel
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

Re: [deal.II] KDTree implementation error

2020-07-24 Thread luca.heltai
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

Re: [deal.II] KDTree implementation error

2020-07-24 Thread luca.heltai
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 : tree | bgi::adaptors::queried(bgi::nearest(p0, 3))) // do something with p

[deal.II] KDTree implementation error

2020-07-23 Thread heena patel
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); *