![]() |
open_iA
2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Structure representing axis aligned bounding box. More...
#include <iADreamCasterCommon.h>
Public Member Functions | |
| iAVec3f | center () const |
| Calculate center vector of bb. More... | |
| iAVec3f | half_size () const |
| Calculate half size vector of bb. More... | |
| iAaabb () | |
| iAaabb (float a_x1, float a_x2, float a_y1, float a_y2, float a_z1, float a_z2) | |
| iAaabb (iAaabb &el) | |
| int | isInside (iAVec3f &v) const |
| Determines if v is inside AABB. More... | |
| int | mainDim () const |
| Calculates index of maximum dimension. More... | |
| void | setData (const iAaabb &el) |
| void | setData (float a_x1, float a_x2, float a_y1, float a_y2, float a_z1, float a_z2) |
| float | surfaceArea () |
Public Attributes | |
| float | x1 |
| float | x2 |
| float | y1 |
| float | y2 |
| float | z1 |
| float | z2 |
Structure representing axis aligned bounding box.
Has ranges of each of 3 axes values, center coordinates, half-dimensions, index of maximum dimension.
| iAaabb::iAaabb | ( | ) |
| iAaabb::iAaabb | ( | iAaabb & | el | ) |
| iAaabb::iAaabb | ( | float | a_x1, |
| float | a_x2, | ||
| float | a_y1, | ||
| float | a_y2, | ||
| float | a_z1, | ||
| float | a_z2 | ||
| ) |
| iAVec3f iAaabb::center | ( | ) | const |
Calculate center vector of bb.
| iAVec3f iAaabb::half_size | ( | ) | const |
Calculate half size vector of bb.
|
inline |
Determines if v is inside AABB.
| int iAaabb::mainDim | ( | ) | const |
Calculates index of maximum dimension.
| void iAaabb::setData | ( | const iAaabb & | el | ) |
| void iAaabb::setData | ( | float | a_x1, |
| float | a_x2, | ||
| float | a_y1, | ||
| float | a_y2, | ||
| float | a_z1, | ||
| float | a_z2 | ||
| ) |
| float iAaabb::surfaceArea | ( | ) |
| float iAaabb::x1 |
| float iAaabb::x2 |
| float iAaabb::y1 |
| float iAaabb::y2 |
| float iAaabb::z1 |
| float iAaabb::z2 |
1.8.16