![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
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 | |
| constexpr | BVH_Box () noexcept |
| Creates uninitialized bounding box. | |
| constexpr | BVH_Box (const BVH_VecNt &thePoint) noexcept |
| Creates bounding box of given point. | |
| constexpr | BVH_Box (const BVH_VecNt &theMinPoint, const BVH_VecNt &theMaxPoint) noexcept |
| Creates bounding box from corner points. | |
| constexpr void | Clear () noexcept |
| Clears bounding box. | |
| constexpr bool | IsValid () const noexcept |
| Is bounding box valid? | |
| void | Add (const BVH_VecNt &thePoint) |
| Appends new point to the bounding box. | |
| void | Combine (const BVH_Box &theBox) |
| Combines bounding box with another one. | |
| constexpr const BVH_VecNt & | CornerMin () const noexcept |
| Returns minimum point of bounding box. | |
| constexpr const BVH_VecNt & | CornerMax () const noexcept |
| Returns maximum point of bounding box. | |
| constexpr BVH_VecNt & | CornerMin () noexcept |
| Returns minimum point of bounding box. | |
| constexpr BVH_VecNt & | CornerMax () noexcept |
| Returns maximum point of bounding box. | |
| T | Area () const |
| Returns surface area of bounding box. If the box is degenerated into line, returns the perimeter instead. | |
| constexpr BVH_VecNt | Size () const |
| Returns diagonal of bounding box. | |
| constexpr BVH_VecNt | Center () const |
| Returns center of bounding box. | |
| T | Center (const int theAxis) const |
| Returns center of bounding box along the given axis. | |
| void | DumpJson (Standard_OStream &theOStream, int theDepth=-1) const |
| Dumps the content of me into the stream. | |
| bool | InitFromJson (const Standard_SStream &theSStream, int &theStreamPos) |
| Inits the content of me from the stream. | |
| constexpr bool | IsOut (const BVH_Box< T, N > &theOther) const |
| Checks if the Box is out of the other box. | |
| constexpr bool | IsOut (const BVH_VecNt &theMinPoint, const BVH_VecNt &theMaxPoint) const |
| Checks if the Box is out of the other box defined by two points. | |
| constexpr bool | Contains (const BVH_Box< T, N > &theOther, bool &hasOverlap) const |
| Checks if the Box fully contains the other box. | |
| constexpr bool | Contains (const BVH_VecNt &theMinPoint, const BVH_VecNt &theMaxPoint, bool &hasOverlap) const |
| Checks if the Box is fully contains the other box. | |
| constexpr bool | IsOut (const BVH_VecNt &thePoint) const |
| Checks if the Point is out of the box. | |
Protected Attributes | |
| BVH_VecNt | myMinPoint |
| Minimum point of bounding box (max<T> when invalid) | |
| BVH_VecNt | myMaxPoint |
| Maximum point of bounding box (lowest<T> when invalid) | |
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 uninitialized bounding box.
Creates bounding box of given point.
|
inlineconstexprnoexcept |
Creates bounding box from corner points.
Appends new point to the bounding box.
Returns surface area of bounding box. If the box is degenerated into line, returns the perimeter instead.
Returns center of bounding box.
Returns center of bounding box along the given axis.
Clears bounding box.
Combines bounding box with another one.
|
inlineconstexpr |
Checks if the Box fully contains the other box.
|
inlineconstexpr |
Checks if the Box is fully contains the other box.
Returns maximum point of bounding box.
Returns maximum point of bounding box.
Returns minimum point of bounding box.
Returns minimum point of bounding box.
|
inline |
Dumps the content of me into the stream.
|
inline |
Inits the content of me from the stream.
Checks if the Box is out of the other box.
|
inlineconstexpr |
Checks if the Box is out of the other box defined by two points.
Checks if the Point is out of the box.
Is bounding box valid?
Returns diagonal of bounding box.
Maximum point of bounding box (lowest<T> when invalid)
Minimum point of bounding box (max<T> when invalid)