Public Member Functions |
| | BBox () |
| | BBox (const VectorType &xyzMin, const VectorType &xyzMax) |
| | BBox (const VectorType &xyzMin, const VectorType &xyzMax, bool sorted) |
| | BBox (const VectorType &xyzMin, const ElementType &length) |
| | Contruct a cubical BBox from a minimum coordinate and a single edge length.
|
| | BBox (const ElementType *xyz, bool sorted=true) |
| | BBox (const BBox &other) |
| void | sort () |
| const VectorType & | min () const |
| const VectorType & | max () const |
| VectorType & | min () |
| VectorType & | max () |
| bool | operator== (const BBox &rhs) const |
| bool | operator!= (const BBox &rhs) const |
| bool | empty () const |
| bool | hasVolume () const |
| | operator bool () const |
| bool | isSorted () const |
| Vec3d | getCenter () const |
| VectorType | extents () const |
| ElementType | volume () const |
| size_t | maxExtent () const |
| | Return the index (0, 1 or 2) of the longest axis.
|
| bool | isInside (const VectorType &xyz) const |
| | Return true if point (x, y, z) is inside this bounding box.
|
| bool | isInside (const BBox &) const |
| | Return true if the given bounding box is inside this bounding box.
|
| bool | hasOverlap (const BBox &) const |
| | Return true if the given bounding box overlaps with this bounding box.
|
| void | expand (ElementType padding) |
| | Pad this bounding box.
|
| void | expand (const VectorType &xyz) |
| | Expand this bounding box to enclose point (x, y, z).
|
| void | expand (const BBox &) |
| | Union this bounding box with the given bounding box.
|
| void | expand (const VectorType &xyzMin, const ElementType &length) |
| void | translate (const VectorType &t) |
| | Translate this bounding box by .
|
| void | read (std::istream &is) |
| | Unserialize this bounding box from the given stream.
|
| void | write (std::ostream &os) const |
| | Serialize this bounding box to the given stream.
|
template<class _VectorType>
class openvdb::v1_1_0::math::BBox< _VectorType >
Axis-aligned bounding box.