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_Array< UT_Vector3T< T > > &points, int refinement=6)
 
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< 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_Array< UT_Vector3T< T > > &  points,
int  refinement = 6 
)
inline

Definition at line 29 of file UT_OBBox.h.

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_Matrix3T<T> UT_OBBoxT< T >::getBasis ( void  ) const
inline

Return the basis that defines the orientation of the OBB.

Definition at line 44 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 54 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 50 of file UT_OBBox.h.

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

Return the minimum axis direction.

Definition at line 56 of file UT_OBBox.h.

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

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

Definition at line 46 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 48 of file UT_OBBox.h.

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

Return the tranform matrix of the OBB.

Member Data Documentation

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

Definition at line 73 of file UT_OBBox.h.

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

Definition at line 69 of file UT_OBBox.h.

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

Definition at line 68 of file UT_OBBox.h.

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

Definition at line 70 of file UT_OBBox.h.

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

Definition at line 72 of file UT_OBBox.h.

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

Definition at line 71 of file UT_OBBox.h.


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