An axis-aligned bounding box volume tree implementation. More...
#include <dumux/common/geometry/boundingboxtree.hh>
An axis-aligned bounding box volume tree implementation.
The class constructs a hierarchical structure of bounding box volumes around grid entities. This class can be used to efficiently compute intersections between a grid and other geometrical object. It only implements the intersection of two of such bounding box trees, so that two independent grids can be intersected.
GeometricEntitySet | has the following requirements
|
Public Types | |
using | EntitySet = GeometricEntitySet |
the type of entity set this tree was built with More... | |
Public Member Functions | |
BoundingBoxTree ()=default | |
Default Constructor. More... | |
BoundingBoxTree (std::shared_ptr< const GeometricEntitySet > set) | |
Constructor with gridView. More... | |
void | build (std::shared_ptr< const GeometricEntitySet > set) |
Build up bounding box tree for a grid with leafGridView. More... | |
const EntitySet & | entitySet () const |
the entity set this tree was built with More... | |
const BoundingBoxNode & | getBoundingBoxNode (std::size_t nodeIdx) const |
Interface to be used by other bounding box trees. More... | |
const ctype * | getBoundingBoxCoordinates (std::size_t nodeIdx) const |
Get an existing bounding box for a given node. More... | |
std::size_t | numBoundingBoxes () const |
Get the number of bounding boxes currently in the tree. More... | |
bool | isLeaf (const BoundingBoxNode &node, std::size_t nodeIdx) const |
using Dumux::BoundingBoxTree< GeometricEntitySet >::EntitySet = GeometricEntitySet |
the type of entity set this tree was built with
|
default |
Default Constructor.
|
inline |
Constructor with gridView.
|
inline |
Build up bounding box tree for a grid with leafGridView.
|
inline |
the entity set this tree was built with
|
inline |
Get an existing bounding box for a given node.
|
inline |
Interface to be used by other bounding box trees.
Get an existing bounding box for a given node
|
inline |
Check whether a bounding box node is a leaf node Leaf nodes have itself as child0
|
inline |
Get the number of bounding boxes currently in the tree.