template<typename _Scalar, int _Dim, typename _Object>
class Eigen::KdBVH< _Scalar, _Dim, _Object >
A simple bounding volume hierarchy based on AlignedBox.
- Parameters
-
| _Scalar | The underlying scalar type of the bounding boxes |
| _Dim | The dimension of the space in which the hierarchy lives |
| _Object | The object type that lives in the hierarchy. It must have value semantics. Either bounding_box(_Object) must be defined and return an AlignedBox<_Scalar, _Dim> or bounding boxes must be provided to the tree initializer. |
This class provides a simple (as opposed to optimized) implementation of a bounding volume hierarchy analogous to a Kd-tree. Given a sequence of objects, it computes their bounding boxes, constructs a Kd-tree of their centers and builds a BVH with the structure of that Kd-tree. When the elements of the tree are too expensive to be copied around, it is useful for _Object to be a pointer.
|
| void | getChildren (Index index, VolumeIterator &outVBegin, VolumeIterator &outVEnd, ObjectIterator &outOBegin, ObjectIterator &outOEnd) const |
| |
| Index | getRootIndex () const |
| |
| const Volume & | getVolume (Index index) const |
| |
| template<typename Iter > |
| void | init (Iter begin, Iter end) |
| |
| template<typename OIter , typename BIter > |
| void | init (OIter begin, OIter end, BIter boxBegin, BIter boxEnd) |
| |
| template<typename Iter > |
| | KdBVH (Iter begin, Iter end) |
| |
| template<typename OIter , typename BIter > |
| | KdBVH (OIter begin, OIter end, BIter boxBegin, BIter boxEnd) |
| |