22#ifndef dftfeRTreeBox_h
23#define dftfeRTreeBox_h
25#include <boost/geometry.hpp>
26#include <boost/geometry/geometries/geometries.hpp>
27#include <boost/geometry/index/rtree.hpp>
28#include <boost/range/adaptors.hpp>
41 namespace BA = boost::adaptors;
42 namespace BG = boost::geometry;
43 namespace BGI = boost::geometry::index;
44 namespace BGIA = boost::geometry::index::adaptors;
52 template <
size_type dim,
size_type M>
56 using BPoint = BG::model::point<double, dim, BG::cs::cartesian>;
57 using BBox = BG::model::box<BPoint>;
58 using BBoxI = std::pair<BBox, size_type>;
68 std::vector<std::vector<size_type>>
70 std::vector<std::shared_ptr<
const Cell<dim>>> queryCells);
81#include <../utils/RTreeBox.t.cc>
This class provides the interface that will be required while interpolating a nodal data to arbitrary...
Definition Cell.h:45
BGI::rtree< BBoxI, BGI::quadratic< M > > BRTreeBoxI
Definition RTreeBox.h:59
std::pair< BBox, size_type > BBoxI
Definition RTreeBox.h:58
RTreeBox(std::vector< std::shared_ptr< const Cell< dim > > > sourceCells)
Constructor.
BG::model::box< BPoint > BBox
Definition RTreeBox.h:57
BRTreeBoxI d_rtree
Definition RTreeBox.h:76
BG::model::point< double, dim, BG::cs::cartesian > BPoint
Definition RTreeBox.h:56
std::vector< std::vector< size_type > > getOverlappingCellIds(std::vector< std::shared_ptr< const Cell< dim > > > queryCells)
Definition pseudoPotentialToDftfeConverter.cc:34