Nektar++
Public Types | Public Member Functions | Public Attributes | List of all members
Nektar::SpatialDomains::MeshGraph::GeomRTree Struct Reference

Public Types

typedef bg::model::point< NekDouble, 3, bg::cs::cartesian > BgPoint
 
typedef bg::model::box< BgPointBgBox
 
typedef std::pair< BgBox, int > BgRtreeValue
 

Public Member Functions

void InsertGeom (GeometrySharedPtr const &geom)
 

Public Attributes

bg::index::rtree< BgRtreeValue, bg::index::rstar< 16, 4 > > m_bgTree
 

Detailed Description

Definition at line 83 of file MeshGraph.cpp.

Member Typedef Documentation

◆ BgBox

Definition at line 86 of file MeshGraph.cpp.

◆ BgPoint

typedef bg::model::point<NekDouble, 3, bg::cs::cartesian> Nektar::SpatialDomains::MeshGraph::GeomRTree::BgPoint

Definition at line 85 of file MeshGraph.cpp.

◆ BgRtreeValue

Definition at line 87 of file MeshGraph.cpp.

Member Function Documentation

◆ InsertGeom()

void Nektar::SpatialDomains::MeshGraph::GeomRTree::InsertGeom ( GeometrySharedPtr const &  geom)
inline

Definition at line 91 of file MeshGraph.cpp.

92 {
93 std::array<NekDouble, 6> minMax = geom->GetBoundingBox();
94 BgPoint ptMin(minMax[0], minMax[1], minMax[2]);
95 BgPoint ptMax(minMax[3], minMax[4], minMax[5]);
96 m_bgTree.insert(
97 std::make_pair(BgBox(ptMin, ptMax), geom->GetGlobalID()));
98 }
bg::model::point< NekDouble, 3, bg::cs::cartesian > BgPoint
Definition: MeshGraph.cpp:85
bg::index::rtree< BgRtreeValue, bg::index::rstar< 16, 4 > > m_bgTree
Definition: MeshGraph.cpp:89

References m_bgTree.

Member Data Documentation

◆ m_bgTree

bg::index::rtree<BgRtreeValue, bg::index::rstar<16, 4> > Nektar::SpatialDomains::MeshGraph::GeomRTree::m_bgTree

Definition at line 89 of file MeshGraph.cpp.

Referenced by InsertGeom().