Template Class BigGridKdTree

Class Documentation

template<typename BaseVecT>
class BigGridKdTree

Public Functions

BigGridKdTree(BoundingBox<BaseVecT> &bb, size_t maxNodePoints, BigGrid<BaseVecT> *grid, float voxelsize, size_t numPoints = 0)

constructor reserved for the root of a kd-Tree

Parameters:
  • bb

  • maxNodePoints

  • grid

  • voxelsize

  • numPoints

virtual ~BigGridKdTree()
void insert(size_t numPoints, BaseVecT pos)

inserts a nodes in to the kd-Tree

Parameters:
  • numPoints

  • pos

inline size_t getNumPoints()
Returns:

number of points

inline BoundingBox<BaseVecT> &getBB()
Returns:

BoundingBox

Public Static Functions

static std::vector<BigGridKdTree*> getLeafs()

returns the leafs of the kd-tree (or final PartitionBB which can be converted to the sub-mesh)

Returns:

leafs

static inline std::vector<BigGridKdTree*> getNodes()
Returns:

nodes