#include <OOBB.hpp>
Definition at line 21 of file OOBB.hpp.
ApproxMVBB::OOBB::OOBB |
( |
const OOBB & |
| ) |
|
|
default |
ApproxMVBB::OOBB::OOBB |
( |
const Vector3 & |
l, |
|
|
const Vector3 & |
u, |
|
|
const Matrix33 & |
A_IK |
|
) |
| |
ApproxMVBB::OOBB::OOBB |
( |
AABB3d & |
aabb | ) |
|
|
inline |
Initializes OOBB with AABB3d values, rotation is set to identity!
Definition at line 40 of file OOBB.hpp.
Vector3 ApproxMVBB::OOBB::center |
( |
| ) |
|
|
inline |
void ApproxMVBB::OOBB::expand |
( |
PREC |
d | ) |
|
|
inline |
void ApproxMVBB::OOBB::expand |
( |
Vector3 |
d | ) |
|
|
inline |
void ApproxMVBB::OOBB::expandToMinExtentAbsolute |
( |
PREC |
minExtent | ) |
|
Adjust box that all axes have at least a minimal extent minExtent
Definition at line 75 of file OOBB.cpp.
void ApproxMVBB::OOBB::expandToMinExtentRelative |
( |
PREC |
p = 0.1 , |
|
|
PREC |
defaultExtent = 0.1 , |
|
|
PREC |
eps = 1e-10 |
|
) |
| |
Adjust box that all axes have at least a minimal extent of maxExtent*p, if maxExtent*p < eps then all axes to default extent
Definition at line 53 of file OOBB.cpp.
Array3 ApproxMVBB::OOBB::extent |
( |
| ) |
const |
|
inline |
template<bool coordinateSystemIsI = true>
Vector3List ApproxMVBB::OOBB::getCornerPoints |
( |
| ) |
const |
|
inline |
Get all corner points in I Frame
- Returns
- A list of all corner points sorted according to (x,y,z) index in K frame
- Parameters
-
coordinateSystemIsI | determines if the the output points are represented in the coordinate system I or if false they are represented in the coordinate system of the OOBB, that is, system K (move semantics make this fast) |
Definition at line 153 of file OOBB.hpp.
Vector3 ApproxMVBB::OOBB::getDirection |
( |
unsigned int |
i | ) |
const |
|
inline |
Get direction vectors in I Frame
Definition at line 139 of file OOBB.hpp.
bool ApproxMVBB::OOBB::isEmpty |
( |
| ) |
const |
|
inline |
PREC ApproxMVBB::OOBB::maxExtent |
( |
| ) |
const |
|
inline |
PREC ApproxMVBB::OOBB::maxExtent |
( |
Vector3::Index & |
i | ) |
const |
|
inline |
OOBB& ApproxMVBB::OOBB::operator= |
( |
AABB3d & |
aabb | ) |
|
|
inline |
Initializes OOBB with AABB3d values, rotation is set to identity!
Definition at line 47 of file OOBB.hpp.
template<typename Derived , bool coordinateSystemIsI = true>
bool ApproxMVBB::OOBB::overlaps |
( |
const MatrixBase< Derived > & |
p | ) |
const |
|
inline |
Checks if a point overlaps the OOBB
- Parameters
-
p | input point which is regar |
coordinateSystemIsI | determines if the the input point p is in the coordinate system I or if false it is regarded to be in the coordinate system of the OOBB, that is, system K |
Definition at line 104 of file OOBB.hpp.
void ApproxMVBB::OOBB::reset |
( |
| ) |
|
void ApproxMVBB::OOBB::setZAxisLongest |
( |
| ) |
|
|
inline |
void ApproxMVBB::OOBB::switchZAxis |
( |
unsigned int |
i | ) |
|
Switch the z-Axis to the axis with index i (default x-Axis)
Definition at line 23 of file OOBB.cpp.
template<typename Derived >
OOBB& ApproxMVBB::OOBB::unite |
( |
const MatrixBase< Derived > & |
p | ) |
|
|
inline |
PREC ApproxMVBB::OOBB::volume |
( |
| ) |
const |
|
inline |
Vector3 ApproxMVBB::OOBB::m_maxPoint |
Vector3 ApproxMVBB::OOBB::m_minPoint |
Quaternion ApproxMVBB::OOBB::m_q_KI |
Rotation of frame I to frame K, corresponds to a transformation A_IK;.
Definition at line 175 of file OOBB.hpp.
The documentation for this class was generated from the following files: