Go to the documentation of this file.
43 using std::unique_ptr;
60 template<
typename BaseVecT>
71 BVHTree(
const vector<float>& vertices,
const vector<uint32_t>& faces);
77 const floatArr vertices,
size_t n_vertices,
159 virtual bool isLeaf() = 0;
213 const floatArr vertices,
size_t n_vertices,
249 #include "lvr2/geometry/BVH.tcc"
boost::shared_array< float > floatArr
BVHNodePtr buildTreeRecursive(vector< AABB > &work, uint32_t depth=0)
Recursive method to build the tree.
BVHNodePtr buildTree(const vector< float > &vertices, const vector< uint32_t > &faces)
Builds the tree without it's cache friendly representation. Utilizes the buildTreeRecursive method.
void createCFTree()
Creates the cache friendly representation of the tree. Needs the tree itself!
vector< float > m_trianglesIntersectionData
boost::shared_array< unsigned int > indexArray
unique_ptr< BVHNode > BVHNodePtr
vector< uint32_t > m_indexesOrTrilists
vector< Triangle > m_triangles
unique_ptr< BVHLeaf > BVHLeafPtr
vector< size_t > triangles
BoundingBox< BaseVecT > bb
BoundingBox< BaseVecT > bb
BoundingBox< BaseVecT > bb
const vector< uint32_t > & getTriIndexList() const
BVHTree(const vector< float > &vertices, const vector< uint32_t > &faces)
Constructs the tree itself and it's cache friendly representation.
Implementation of an Bounding Volume Hierarchy Tree used for ray casting.
void createCFTreeRecursive(BVHNodePtr currentNode, uint32_t &idxBoxes)
Recursive method for cache friendly tree creation.
vector< size_t > triangles
const vector< float > & getTrianglesIntersectionData() const
Returns precalculated values for the triangle intersection tests.
A dynamic bounding box class.
std::shared_ptr< MeshBuffer > MeshBufferPtr
const vector< float > & getLimits() const
void convertTrianglesIntersectionData()
Converts the precalculated triangle intersection data to a SIMD friendly structure.
const vector< uint32_t > & getIndexesOrTrilists() const
vector< uint32_t > m_triIndexList
unique_ptr< BVHInner > BVHInnerPtr
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:22