HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_OBBoxT< T > Class Template Reference

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< TgetBasis () const
 Return the basis that defines the orientation of the OBB. More...
 
UT_Vector3T< TgetRadii () const
 Return the half radii(side length) of the OBB. More...
 
UT_Vector3T< TgetRotation () const
 Return the rotation i radians. More...
 
UT_Vector3T< TgetCenter () const
 Return the center of the OBB. More...
 
UT_Matrix4T< TgetTransform () const
 Return the tranform matrix of the OBB. More...
 
UT_BoundingBoxT< TgetBBox () const
 Return the non-oriented bounding box. More...
 
UT_Vector3T< TgetAxis (int axis) const
 Return the given axis direction. More...
 
UT_Vector3T< TgetMinAxis () const
 Return the minimum axis direction. More...
 

Protected Attributes

UT_BoundingBoxT< TmyBB
 
UT_Matrix3T< TmyBasis
 
UT_Vector3T< TmyCenter
 
UT_Vector3T< TmyRotation
 
UT_Vector3T< TmyRadii
 
bool init
 

Detailed Description

template<typename T>
class UT_OBBoxT< T >

Arbitrarily Oriented Bounding (OBB)

Definition at line 25 of file UT_OBBox.h.

Constructor & Destructor Documentation

template<typename T>
UT_OBBoxT< T >::UT_OBBoxT ( )
template<typename T>
UT_OBBoxT< T >::UT_OBBoxT ( const UT_Matrix4T< T > &  transform,
const UT_BoundingBoxT< T > &  bbox 
)
template<typename T>
UT_OBBoxT< T >::UT_OBBoxT ( const UT_Array< UT_Vector3T< T > > &  points,
int  refinement = 6 
)

Member Function Documentation

template<typename T>
void UT_OBBoxT< T >::calcOBB ( const UT_Array< UT_Vector3T< T > > &  points,
int  refinement = 6 
)

Calculate the OBB for the set of points.

template<typename T>
UT_Vector3T<T> UT_OBBoxT< T >::getAxis ( int  axis) const

Return the given axis direction.

template<typename T>
UT_Matrix3T<T> UT_OBBoxT< T >::getBasis ( ) const
inline

Return the basis that defines the orientation of the OBB.

Definition at line 37 of file UT_OBBox.h.

template<typename T>
UT_BoundingBoxT<T> UT_OBBoxT< T >::getBBox ( ) const
inline

Return the non-oriented bounding box.

Definition at line 47 of file UT_OBBox.h.

template<typename T>
UT_Vector3T<T> UT_OBBoxT< T >::getCenter ( ) const
inline

Return the center of the OBB.

Definition at line 43 of file UT_OBBox.h.

template<typename T>
UT_Vector3T<T> UT_OBBoxT< T >::getMinAxis ( ) const

Return the minimum axis direction.

template<typename T>
UT_Vector3T<T> UT_OBBoxT< T >::getRadii ( ) const
inline

Return the half radii(side length) of the OBB.

Definition at line 39 of file UT_OBBox.h.

template<typename T>
UT_Vector3T<T> UT_OBBoxT< T >::getRotation ( ) const
inline

Return the rotation i radians.

Definition at line 41 of file UT_OBBox.h.

template<typename T>
UT_Matrix4T<T> UT_OBBoxT< T >::getTransform ( ) const

Return the tranform matrix of the OBB.

template<typename T>
bool UT_OBBoxT< T >::operator== ( const UT_OBBoxT< T > &  other) const

Member Data Documentation

template<typename T>
bool UT_OBBoxT< T >::init
protected

Definition at line 59 of file UT_OBBox.h.

template<typename T>
UT_Matrix3T<T> UT_OBBoxT< T >::myBasis
protected

Definition at line 55 of file UT_OBBox.h.

template<typename T>
UT_BoundingBoxT<T> UT_OBBoxT< T >::myBB
protected

Definition at line 54 of file UT_OBBox.h.

template<typename T>
UT_Vector3T<T> UT_OBBoxT< T >::myCenter
protected

Definition at line 56 of file UT_OBBox.h.

template<typename T>
UT_Vector3T<T> UT_OBBoxT< T >::myRadii
protected

Definition at line 58 of file UT_OBBox.h.

template<typename T>
UT_Vector3T<T> UT_OBBoxT< T >::myRotation
protected

Definition at line 57 of file UT_OBBox.h.


The documentation for this class was generated from the following file: