HDK
|
Arbitrarily Oriented Bounding (OBB) More...
#include <UT_OBBox.h>
Public Member Functions | |
UT_OBBoxT () | |
UT_OBBoxT (const UT_Matrix4T< T > &transform, const UT_BoundingBoxT< T > &bbox) | |
UT_OBBoxT (const UT_Array< UT_Vector3T< T > > &points, int refinement=6) | |
bool | operator== (const UT_OBBoxT< T > &other) const |
void | calcOBB (const UT_Array< UT_Vector3T< T > > &points, int refinement=6) |
Calculate the OBB for the set of points. More... | |
UT_Matrix3T< T > | getBasis () const |
Return the basis that defines the orientation of the OBB. More... | |
UT_Vector3T< T > | getRadii () const |
Return the half radii(side length) of the OBB. More... | |
UT_Vector3T< T > | getRotation () const |
Return the rotation i radians. More... | |
UT_Vector3T< T > | getCenter () const |
Return the center of the OBB. More... | |
UT_Matrix4T< T > | getTransform () const |
Return the tranform matrix of the OBB. More... | |
UT_BoundingBoxT< T > | getBBox () const |
Return the non-oriented bounding box. More... | |
UT_Vector3T< T > | getAxis (int axis) const |
Return the given axis direction. More... | |
UT_Vector3T< T > | getMinAxis () const |
Return the minimum axis direction. More... | |
Protected Attributes | |
UT_BoundingBoxT< T > | myBB |
UT_Matrix3T< T > | myBasis |
UT_Vector3T< T > | myCenter |
UT_Vector3T< T > | myRotation |
UT_Vector3T< T > | myRadii |
bool | init |
Arbitrarily Oriented Bounding (OBB)
Definition at line 25 of file UT_OBBox.h.
UT_OBBoxT< T >::UT_OBBoxT | ( | const UT_Matrix4T< T > & | transform, |
const UT_BoundingBoxT< T > & | bbox | ||
) |
UT_OBBoxT< T >::UT_OBBoxT | ( | const UT_Array< UT_Vector3T< T > > & | points, |
int | refinement = 6 |
||
) |
void UT_OBBoxT< T >::calcOBB | ( | const UT_Array< UT_Vector3T< T > > & | points, |
int | refinement = 6 |
||
) |
Calculate the OBB for the set of points.
UT_Vector3T<T> UT_OBBoxT< T >::getAxis | ( | int | axis | ) | const |
Return the given axis direction.
|
inline |
Return the basis that defines the orientation of the OBB.
Definition at line 37 of file UT_OBBox.h.
|
inline |
Return the non-oriented bounding box.
Definition at line 47 of file UT_OBBox.h.
|
inline |
Return the center of the OBB.
Definition at line 43 of file UT_OBBox.h.
UT_Vector3T<T> UT_OBBoxT< T >::getMinAxis | ( | ) | const |
Return the minimum axis direction.
|
inline |
Return the half radii(side length) of the OBB.
Definition at line 39 of file UT_OBBox.h.
|
inline |
Return the rotation i radians.
Definition at line 41 of file UT_OBBox.h.
UT_Matrix4T<T> UT_OBBoxT< T >::getTransform | ( | ) | const |
Return the tranform matrix of the OBB.
Definition at line 59 of file UT_OBBox.h.
|
protected |
Definition at line 55 of file UT_OBBox.h.
|
protected |
Definition at line 54 of file UT_OBBox.h.
|
protected |
Definition at line 56 of file UT_OBBox.h.
|
protected |
Definition at line 58 of file UT_OBBox.h.
|
protected |
Definition at line 57 of file UT_OBBox.h.