IJKPartitionTree.h 1.6 KB

123456789101112131415161718
  1. #pragma once
  2. #if defined (___1989)
  3. #undef ___1989
  4. #endif
  5. #include "ThirdPartyHeadersBegin.h"
  6. #include <iterator>
  7. #include <boost/geometry.hpp>
  8. #include <boost/geometry/geometries/box.hpp>
  9. #include <boost/geometry/geometries/point.hpp>
  10. #include <boost/geometry/index/rtree.hpp>
  11. #include "ThirdPartyHeadersEnd.h"
  12. #if defined (___1989)
  13. #undef ___1989
  14. #endif
  15. #define ___1989 (-1)
  16. #include "IJK.h"
  17. #include "ItemAddress.h"
  18. namespace tecplot { namespace ___3933 { int const RTREE_PAGE_SIZE = 8; typedef boost::geometry::model::point<int64_t, 3, boost::geometry::cs::cartesian> ___1853; typedef boost::geometry::model::box<___1853> ___1855; typedef std::pair<___1855, tecplot::___2090::___2980> ___1864; class ___1863 : public boost::geometry::index::rtree<___1864, boost::geometry::index::quadratic<RTREE_PAGE_SIZE> > { public: ___1863() {} explicit ___1863(std::vector<___1864> const& ___2981) : boost::geometry::index::rtree<___1864, boost::geometry::index::quadratic<RTREE_PAGE_SIZE> >(___2981) {} void ___13(___2090::___2980 ___2977, ___1844 const& ___2474, ___1844 const& ___2364) { ___1853 ___2478(___2474.i(), ___2474.___2105(), ___2474.___2134()); ___1853 ___2372(___2364.i(), ___2364.___2105(), ___2364.___2134()); insert(std::make_pair(___1855(___2478, ___2372), ___2977)); } bool find(___1844 const& ___2474, ___1844 const& ___2364, std::vector<___1864>& ___2099) { REQUIRE(___2099.empty()); ___1853 ___2478(___2474.i(), ___2474.___2105(), ___2474.___2134()); ___1853 ___2372(___2364.i(), ___2364.___2105(), ___2364.___2134()); query(boost::geometry::index::intersects(___1855(___2478, ___2372)), std::back_inserter(___2099)); return !___2099.empty(); } }; }}