35 #ifndef LAS_VEGAS_BIGGRIDKDTREE_H 36 #define LAS_VEGAS_BIGGRIDKDTREE_H 46 template <
typename BaseVecT>
62 size_t numPoints = 0);
70 void insert(
size_t numPoints, BaseVecT pos);
76 static std::vector<BigGridKdTree*>
getLeafs();
134 return pos.x > m_bb.
getMin().x && pos.y > m_bb.
getMin().y && pos.z > m_bb.
getMin().z &&
141 #include "lvr2/reconstruction/BigGridKdTree.tcc" 143 #endif // LAS_VEGAS_BIGGRIDKDTREE_H BoundingBox< BaseVecT > & getBB()
BaseVecT getMin() const
Returns the lower left coordinates.
BigGridKdTree(BoundingBox< BaseVecT > &bb, size_t maxNodePoints, BigGrid< BaseVecT > *grid, float voxelsize, size_t numPoints=0)
A dynamic bounding box class.
static std::vector< BigGridKdTree * > getNodes()
BoundingBox< BaseVecT > m_bb
std::vector< BigGridKdTree * > m_children
static std::vector< BigGridKdTree * > s_nodes
bool fitsInBox(BaseVecT &pos)
void insert(size_t numPoints, BaseVecT pos)
static size_t s_maxNodePoints
BaseVecT getMax() const
Returns the upper right coordinates.
static std::vector< BigGridKdTree * > getLeafs()
static BigGrid< BaseVecT > * m_grid