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 73 of file MeshGraph.cpp.

Member Typedef Documentation

◆ BgBox

Definition at line 76 of file MeshGraph.cpp.

◆ BgPoint

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

Definition at line 75 of file MeshGraph.cpp.

◆ BgRtreeValue

Definition at line 77 of file MeshGraph.cpp.

Member Function Documentation

◆ InsertGeom()

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

Definition at line 81 of file MeshGraph.cpp.

82 {
83 std::array<NekDouble, 6> minMax = geom->GetBoundingBox();
84 BgPoint ptMin(minMax[0], minMax[1], minMax[2]);
85 BgPoint ptMax(minMax[3], minMax[4], minMax[5]);
86 m_bgTree.insert(
87 std::make_pair(BgBox(ptMin, ptMax), geom->GetGlobalID()));
88 }
bg::model::point< NekDouble, 3, bg::cs::cartesian > BgPoint
Definition: MeshGraph.cpp:75
bg::index::rtree< BgRtreeValue, bg::index::rstar< 16, 4 > > m_bgTree
Definition: MeshGraph.cpp:79

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 79 of file MeshGraph.cpp.

Referenced by InsertGeom().