Partial template specialization for integer coordinate types.
More...
#include <nanovdb/NanoVDB.h>
Inherits BaseBBox< CoordT >.
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!
◆ BaseT
◆ BBox() [1/3]
◆ BBox() [2/3]
BBox |
( |
const CoordT & |
min, |
|
|
const CoordT & |
max |
|
) |
| |
|
inline |
◆ BBox() [3/3]
BBox |
( |
BBox< CoordT, false > & |
other, |
|
|
const SplitT & |
|
|
) |
| |
|
inline |
◆ asReal()
- Warning
- This converts a CoordBBox into a floating-point bounding box which implies that max += 1 !
◆ begin()
◆ createCube()
static BBox createCube |
( |
const CoordT & |
min, |
|
|
typename CoordT::ValueType |
dim |
|
) |
| |
|
inlinestatic |
◆ dim()
◆ empty()
Return true if this bounding box is empty, i.e. uninitialized.
◆ expand()
◆ expandBy()
BBox expandBy |
( |
typename CoordT::ValueType |
padding | ) |
const |
|
inline |
Return a new instance that is expanded by the specified padding.
◆ hasOverlap()
bool hasOverlap |
( |
const BBox< CoordT, false > & |
b | ) |
const |
|
inline |
Return true
if the given bounding box overlaps with this bounding box.
◆ intersect()
Intersect this bounding box with the given bounding box.
◆ is_divisible()
bool is_divisible |
( |
| ) |
const |
|
inline |
◆ isInside() [1/3]
bool isInside |
( |
const BBox< CoordT, false > & |
b | ) |
const |
|
inline |
Return true
if the given bounding box is inside this bounding box.
◆ isInside() [2/3]
bool isInside |
( |
const CoordT & |
p | ) |
const |
|
inline |
◆ isInside() [3/3]
bool isInside |
( |
const CoordT & |
xyz | ) |
|
|
inlineinherited |
◆ max() [1/2]
◆ max() [2/2]
const CoordT & max |
( |
| ) |
const |
|
inlineinherited |
◆ min() [1/2]
◆ min() [2/2]
const CoordT & min |
( |
| ) |
const |
|
inlineinherited |
◆ operator!=()
bool operator!= |
( |
const BaseBBox< CoordT > & |
rhs | ) |
const |
|
inlineinherited |
◆ operator==()
bool operator== |
( |
const BaseBBox< CoordT > & |
rhs | ) |
const |
|
inlineinherited |
◆ operator[]() [1/2]
CoordT & operator[] |
( |
int |
i | ) |
|
|
inlineinherited |
◆ operator[]() [2/2]
const CoordT & operator[] |
( |
int |
i | ) |
const |
|
inlineinherited |
◆ translate()
Coord& translate |
( |
const CoordT & |
xyz | ) |
|
|
inlineinherited |
◆ volume()
uint64_t volume |
( |
| ) |
const |
|
inline |
◆ mCoord