Open CASCADE Technology
6.9.1
|
Defines axis aligned bounding box (AABB) based on BVH vectors. More...
#include <BVH_Box.hxx>
Public Types | |
typedef BVH::VectorType< T, N >::Type | BVH_VecNt |
Public Member Functions | |
BVH_Box () | |
Creates uninitialized bounding box. More... | |
BVH_Box (const BVH_VecNt &thePoint) | |
Creates bounding box of given point. More... | |
BVH_Box (const BVH_Box &theBox) | |
Creates copy of another bounding box. More... | |
BVH_Box (const BVH_VecNt &theMinPoint, const BVH_VecNt &theMaxPoint) | |
Creates bounding box from corner points. More... | |
void | Clear () |
Clears bounding box. More... | |
Standard_Boolean | IsValid () const |
Is bounding box valid? More... | |
void | Add (const BVH_VecNt &thePoint) |
Appends new point to the bounding box. More... | |
void | Combine (const BVH_Box &theVolume) |
Combines bounding box with another one. More... | |
const BVH_VecNt & | CornerMin () const |
Returns minimum point of bounding box. More... | |
const BVH_VecNt & | CornerMax () const |
Returns maximum point of bounding box. More... | |
BVH_VecNt & | CornerMin () |
Returns minimum point of bounding box. More... | |
BVH_VecNt & | CornerMax () |
Returns maximum point of bounding box. More... | |
T | Area () const |
Returns surface area of bounding box. If the box is degenerated into line, returns the perimeter instead. More... | |
BVH_VecNt | Size () const |
Returns diagonal of bounding box. More... | |
BVH_VecNt | Center () const |
Returns center of bounding box. More... | |
T | Center (const Standard_Integer theAxis) const |
Returns center of bounding box along the given axis. More... | |
Protected Attributes | |
BVH_VecNt | myMinPoint |
Minimum point of bounding box. More... | |
BVH_VecNt | myMaxPoint |
Maximum point of bounding box. More... | |
Standard_Boolean | myIsInited |
Is bounding box initialized? More... | |
Defines axis aligned bounding box (AABB) based on BVH vectors.
T | Numeric data type |
N | Vector dimension |
typedef BVH::VectorType<T, N>::Type BVH_Box< T, N >::BVH_VecNt |
Creates bounding box of given point.
Creates copy of another bounding box.
|
inline |
Creates bounding box from corner points.
Appends new point to the bounding box.
T BVH_Box< T, N >::Area | ( | ) | const |
Returns surface area of bounding box. If the box is degenerated into line, returns the perimeter instead.
Returns center of bounding box.
T BVH_Box< T, N >::Center | ( | const Standard_Integer | theAxis | ) | const |
Returns center of bounding box along the given axis.
void BVH_Box< T, N >::Clear | ( | ) |
Clears bounding box.
Combines bounding box with another one.
Returns maximum point of bounding box.
Returns maximum point of bounding box.
Returns minimum point of bounding box.
Returns minimum point of bounding box.
Standard_Boolean BVH_Box< T, N >::IsValid | ( | ) | const |
Is bounding box valid?
Returns diagonal of bounding box.
|
protected |
Is bounding box initialized?
Maximum point of bounding box.
Minimum point of bounding box.