List of all members.
Public Types |
typedef math_types_ | math_types |
typedef math_types::value_traits | value_traits |
typedef math_types::real_type | real_type |
typedef math_types::vector3_type | vector3_type |
typedef math_types::matrix3x3_type | matrix3x3_type |
typedef math_types::quaternion_type | quaternion_type |
Public Member Functions |
size_t const | class_id () const |
| AABB () |
| AABB (real_type const &xmin, real_type const &ymin, real_type const &zmin, real_type const &xmax, real_type const &ymax, real_type const &zmax) |
| AABB (vector3_type const &pmin_v, vector3_type const &pmax_v) |
virtual | ~AABB () |
void | compute_surface_points (std::vector< vector3_type > &points) const |
vector3_type | center () const |
void | set (AABB const &other_aabb) |
void | set (vector3_type const &pmin_v, vector3_type const &pmax_v) |
void | set (real_type const &xmin, real_type const &ymin, real_type const &zmin, real_type const &xmax, real_type const &ymax, real_type const &zmax) |
void | extent (real_type const &xmin, real_type const &ymin, real_type const &zmin, real_type const &width, real_type const &height, real_type const &depth) |
real_type const & | x () const |
real_type const & | y () const |
real_type const & | z () const |
real_type | w () const |
real_type | h () const |
real_type | d () const |
vector3_type & | min () |
vector3_type & | max () |
vector3_type const & | min () const |
vector3_type const & | max () const |
void | update (vector3_type const &n0, vector3_type const &n1, vector3_type const &n2) |
void | update (vector3_type const &n0, vector3_type const &n1, vector3_type const &n2, vector3_type const &n3) |
void | update (AABB const &A, AABB const &B) |
real_type | volume () const |
real_type | area () const |
real_type | diameter () const |
void | translate (vector3_type const &T) |
void | rotate (matrix3x3_type const &) |
void | scale (real_type const &s) |
vector3_type | get_support_point (vector3_type const &v) const |
void | compute_collision_aabb (vector3_type const &r, matrix3x3_type const &, vector3_type &min_coord, vector3_type &max_coord) const |
Public Attributes |
vector3_type | m_min |
| Coordinates of minimum corner.
|
vector3_type | m_max |
| Coordinates of maximum corner.
|
Detailed Description
template<typename math_types_>
class OpenTissue::geometry::AABB< math_types_ >
Axed Aligned Bounding Box (AABB).
Member Typedef Documentation
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
Constructor & Destructor Documentation
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
Member Function Documentation
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
Compute Bounding Box. This method computes an axis aligned bounding box (AABB) that encloses the geometry.
- Parameters:
-
| r | The position of the model frame (i.e the coordinate frame the geometry lives in). |
| R | The orientation of the model frame (i.e the coordinate frame the geometry lives in). |
| min_coord | Upon return holds the minimum corner of the box. |
| max_coord | Upon return holds the maximum corner of the box. |
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
Set AABB box.
- Parameters:
-
| xmin | |
| ymin | |
| zmin | |
| width | |
| height | |
| depth | |
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
Assingment Method. Assigns the size of the specified AABB to this AABB.
- Parameters:
-
template<typename math_types_>
Set AABB box.
- Parameters:
-
| xmin | |
| ymin | |
| zmin | |
| xmax | |
| ymax | |
| zmax | |
template<typename math_types_>
template<typename math_types_>
Update Bounding Box This method updates the size of the AABB such that it encloses the given nodes.
- Parameters:
-
template<typename math_types_>
Update Bounding Box This method updates the size of the AABB such that it encloses the given nodes.
- Parameters:
-
template<typename math_types_>
Update Box. This method updates the size of the AABB such that it encloses the given AABBs.
- Parameters:
-
template<typename math_types_>
Get Volume.
- Returns:
- The current value of the volume of the AABB.
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
template<typename math_types_>
Member Data Documentation
template<typename math_types_>
Coordinates of maximum corner.
template<typename math_types_>
Coordinates of minimum corner.
The documentation for this class was generated from the following file:
- /home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/OpenTissue/core/geometry/geometry_aabb.h