A struct to calculate the Axis Aligned Bounding Box and Average Point of a Point Cloud.
More...
#include <AABB.hpp>
|
| AABB () |
|
template<typename P > |
| AABB (P *points, size_t count) |
| Construct a new AABB object. More...
|
|
template<typename P > |
| AABB (P &points, size_t count) |
| Construct a new AABB object. More...
|
|
template<typename P > |
void | addPoint (const P &point) |
| adds a Point to the Point Cloud More...
|
|
Vector3< T > | avg () const |
| Returns the average of all the Points in the Point Cloud. More...
|
|
size_t | count () const |
| Returns the number of Points in the Point Cloud. More...
|
|
T | difference (int axis) const |
| Calculates the size of the Bounding Box along a certain axis. More...
|
|
int | longestAxis () const |
| Calculates the axis that has the largest size of the Bounding Box. More...
|
|
const Vector3< T > & | max () const |
| Returns the "upper right" Corner of the Bounding Box, as in the largest x, y, z of the Point Cloud. More...
|
|
const Vector3< T > & | min () const |
| Returns the "lower left" Corner of the Bounding Box, as in the smallest x, y, z of the Point Cloud. More...
|
|
template<typename T>
class lvr2::AABB< T >
A struct to calculate the Axis Aligned Bounding Box and Average Point of a Point Cloud.
Definition at line 49 of file AABB.hpp.
◆ AABB() [1/3]
◆ AABB() [2/3]
template<typename T>
template<typename P >
Construct a new AABB object.
- Template Parameters
-
P | Array of point representations that support []-based acces to coordinates |
- Parameters
-
points | Array of points |
count | Number of points in the point array |
Definition at line 67 of file AABB.hpp.
◆ AABB() [3/3]
template<typename T>
template<typename P >
Construct a new AABB object.
- Template Parameters
-
P | Set of points. Points are accessed via the [] operator. The returned point types must support [] operater access to the coordinates. LVR2's channel object suppoort these requirements |
- Parameters
-
points | Set of point |
count | Number of points |
Definition at line 85 of file AABB.hpp.
◆ addPoint()
template<typename T>
template<typename P >
◆ avg()
Returns the average of all the Points in the Point Cloud.
◆ count()
Returns the number of Points in the Point Cloud.
◆ difference()
Calculates the size of the Bounding Box along a certain axis.
◆ longestAxis()
Calculates the axis that has the largest size of the Bounding Box.
◆ max()
Returns the "upper right" Corner of the Bounding Box, as in the largest x, y, z of the Point Cloud.
◆ min()
Returns the "lower left" Corner of the Bounding Box, as in the smallest x, y, z of the Point Cloud.
◆ m_count
◆ m_max
◆ m_min
◆ m_sum
The documentation for this class was generated from the following file: