|
Iterator | begin () const |
|
Iterator | end () const |
|
| BBox () |
|
| BBox (const CoordT &min, const CoordT &max) |
|
template<typename SplitT > |
| BBox (BBox &other, const SplitT &) |
|
bool | is_divisible () const |
|
bool | empty () const |
| Return true if this bounding box is empty, e.g. uninitialized.
|
|
| operator bool () const |
| Convert this BBox to boolean true if it is not empty.
|
|
CoordT | dim () const |
|
uint64_t | volume () const |
|
bool | isInside (const CoordT &p) const |
|
bool | isInside (const BBox &b) const |
| Return true if the given bounding box is inside this bounding box.
|
|
bool | hasOverlap (const BBox &b) const |
| Return true if the given bounding box overlaps with this bounding box.
|
|
template<typename RealT = double> |
BBox< Vec3< RealT > > | asReal () const |
|
BBox | expandBy (typename CoordT::ValueType padding) const |
| Return a new instance that is expanded by the specified padding.
|
|
template<typename Map > |
BBox< Vec3d > | transform (const Map &map) const |
| transform this coordinate bounding box by the specified map
|
|
bool | operator== (const BaseBBox &rhs) const |
|
bool | operator!= (const BaseBBox &rhs) const |
|
const CoordT & | operator[] (int i) const |
|
CoordT & | operator[] (int i) |
|
CoordT & | min () |
|
const CoordT & | min () const |
|
CoordT & | max () |
|
const CoordT & | max () const |
|
BaseBBox & | translate (const CoordT &xyz) |
|
BaseBBox & | expand (const CoordT &xyz) |
| Expand this bounding box to enclose point xyz .
|
|
BaseBBox & | expand (const BaseBBox &bbox) |
| Expand this bounding box to enclose the given bounding box.
|
|
BaseBBox & | intersect (const BaseBBox &bbox) |
| Intersect this bounding box with the given bounding box.
|
|
bool | isInside (const CoordT &xyz) |
|
template<typename CoordT>
struct nanovdb::BBox< CoordT, false >
Partial template specialization for integer coordinate types.
- Note
- Both min and max are INCLUDED in the bbox so dim = max - min + 1. So, if min = max the bounding box contains exactly one point and dim = 1!