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!
BBox |
( |
const CoordT & |
min, |
|
|
const CoordT & |
max |
|
) |
| |
|
inline |
BBox |
( |
BBox< CoordT, false > & |
other, |
|
|
const SplitT & |
|
|
) |
| |
|
inline |
- Warning
- This converts a CoordBBox into a floating-point bounding box which implies that max += 1 !
static BBox createCube |
( |
const CoordT & |
min, |
|
|
typename CoordT::ValueType |
dim |
|
) |
| |
|
inlinestatic |
static BBox createCube |
( |
typename CoordT::ValueType |
min, |
|
|
typename CoordT::ValueType |
max |
|
) |
| |
|
inlinestatic |
Return true if this bounding box is empty, e.g. uninitialized.
Expand this bounding box to enclose point xyz
.
Expand this bounding box to enclose the given bounding box.
BBox expandBy |
( |
typename CoordT::ValueType |
padding | ) |
const |
|
inline |
Return a new instance that is expanded by the specified padding.
bool hasOverlap |
( |
const BBox< CoordT, false > & |
b | ) |
const |
|
inline |
Return true
if the given bounding box overlaps with this bounding box.
Intersect this bounding box with the given bounding box.
bool is_divisible |
( |
| ) |
const |
|
inline |
bool isInside |
( |
const CoordT & |
xyz | ) |
|
|
inlineinherited |
bool isInside |
( |
const CoordT & |
p | ) |
const |
|
inline |
bool isInside |
( |
const BBox< CoordT, false > & |
b | ) |
const |
|
inline |
Return true
if the given bounding box is inside this bounding box.
const CoordT & max |
( |
| ) |
const |
|
inlineinherited |
const CoordT & min |
( |
| ) |
const |
|
inlineinherited |
Convert this BBox to boolean true if it is not empty.
bool operator!= |
( |
const BaseBBox< CoordT > & |
rhs | ) |
const |
|
inlineinherited |
bool operator== |
( |
const BaseBBox< CoordT > & |
rhs | ) |
const |
|
inlineinherited |
const CoordT & operator[] |
( |
int |
i | ) |
const |
|
inlineinherited |
CoordT & operator[] |
( |
int |
i | ) |
|
|
inlineinherited |
transform this coordinate bounding box by the specified map
- Parameters
-
map | mapping of index to world coordinates |
- Returns
- world bounding box
BaseBBox& translate |
( |
const CoordT & |
xyz | ) |
|
|
inlineinherited |
uint64_t volume |
( |
| ) |
const |
|
inline |