A thin axis-aligned box geometry. More...
#include <dumux/geometry/boundingboxgeometry.hh>
Provides the minimal geometry interface required by Dumux::BoundingBoxTree (corner access and geometry type), backed only by the lower and upper corner coordinates. This is useful to build a bounding box tree over a set of plain bounding boxes (e.g. the per-process partition boxes of a distributed tree) without the overhead of a full Dune geometry.
Public Types | |
| using | ctype = ct |
| using | GlobalCoordinate = Dune::FieldVector<ct, dimworld> |
Public Member Functions | |
| BoundingBoxGeometry ()=default | |
| BoundingBoxGeometry (const GlobalCoordinate &lower, const GlobalCoordinate &upper) | |
| Construct from the lower and upper corner of the box. | |
| int | corners () const |
| the number of corners of the box | |
| GlobalCoordinate | corner (int i) const |
| the i-th corner in Dune reference-cube ordering | |
| Dune::GeometryType | type () const |
| the geometry type (an axis-aligned cube) | |
| const GlobalCoordinate & | lower () const |
| the lower (min) corner of the box | |
| const GlobalCoordinate & | upper () const |
| the upper (max) corner of the box | |
Static Public Attributes | |
| static constexpr int | mydimension = dimworld |
| static constexpr int | coorddimension = dimworld |
| using Dumux::BoundingBoxGeometry< ct, dimworld >::ctype = ct |
| using Dumux::BoundingBoxGeometry< ct, dimworld >::GlobalCoordinate = Dune::FieldVector<ct, dimworld> |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |
|
staticconstexpr |