this implementation defines a BVTree structure that use an indexed based storage representation. The implementation does not include functionality for building a BVTree. It is a data structure for accessing nodes in a bounding volume tree.
More...
#include <BVTree.hpp>
|
typedef Traits< DERIVED >::BVType | BVType |
|
typedef Traits< DERIVED >::PRIMType | PRIMType |
|
typedef BVType::value_type | value_type |
|
typedef Traits< DERIVED >::NodeIterator | NodeIterator |
|
typedef Traits< DERIVED >::Node | Node |
|
|
| BVTree (PrimArrayAccessor< PRIMType > *primAccessor) |
| Constructor. The BVTree takes ownership of the primAccessor . More...
|
|
virtual | ~BVTree () |
| Destructor.
|
|
virtual NodeIterator | getRootIterator () const =0 |
|
virtual int | getMaxTrisPerLeaf () const =0 |
|
virtual NodeIterator | createLeft (NodeIterator parent)=0 |
|
virtual NodeIterator | createRight (NodeIterator parent)=0 |
|
virtual NodeIterator | createRoot ()=0 |
|
virtual void | setBV (const BVType &bv, NodeIterator node)=0 |
|
virtual void | setNrOfPrims (int size, NodeIterator node)=0 |
|
virtual void | setPrimIdx (int primIdx, NodeIterator node)=0 |
|
virtual void | optimize ()=0 |
|
int | getPrimitive (const NodeIterator &leafnode, PRIMType &dst, size_t triNr) const |
| get triangle nr triNr that the BVNode leafnode is bounding. The result is set in triangle tridst and the index of the triangle is returned More...
|
|
size_t | getNrPrimitives (const NodeIterator &leafnode) const |
|
template<class DERIVED>
class rw::proximity::BVTree< DERIVED >
this implementation defines a BVTree structure that use an indexed based storage representation. The implementation does not include functionality for building a BVTree. It is a data structure for accessing nodes in a bounding volume tree.
◆ BVTree()
Constructor. The BVTree takes ownership of the primAccessor .
- Parameters
-
◆ getPrimitive()
int getPrimitive |
( |
const NodeIterator & |
leafnode, |
|
|
PRIMType & |
dst, |
|
|
size_t |
triNr |
|
) |
| const |
|
inline |
get triangle nr triNr that the BVNode leafnode is bounding. The result is set in triangle tridst and the index of the triangle is returned
- Parameters
-
leafnode | [int] the leaf containing triangles |
triNr | [in] the triangle nr |
dst | documentation missing ! |
- Returns
- global index of triangle
The documentation for this class was generated from the following file: