69 for (
size_t i = 0; i <
count; i++)
87 for(
size_t i = 0; i <
count; i++)
103 size_t count()
const;
109 for (
int axis = 0; axis < 3; axis++)
111 double val = point[axis];
112 if (val < m_min[axis])
116 if (val > m_max[axis])
134 #include "lvr2/registration/AABB.tcc"
T difference(int axis) const
Calculates the size of the Bounding Box along a certain axis.
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...
AABB(P &points, size_t count)
Construct a new AABB object.
Eigen::Matrix< T, 3, 1 > Vector3
Eigen 3D vector.
Vector3< T > avg() const
Returns the average of all the Points in the Point Cloud.
size_t count() const
Returns the number of Points in the Point Cloud.
AABB(P *points, size_t count)
Construct a new AABB object.
int longestAxis() const
Calculates the axis that has the largest size of the Bounding Box.
void addPoint(const P &point)
adds a Point to the Point Cloud
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...
A struct to calculate the Axis Aligned Bounding Box and Average Point of a Point Cloud.