1 #ifndef CHUNKED_MESH_OCTREE 2 #define CHUNKED_MESH_OCTREE 33 template <
typename BaseVecT>
40 void intersect(
double planes[24], std::vector<BaseVecT>& indices, std::vector<size_t>& hashes);
41 void setLOD(
unsigned char lod) { m_lod = lod; }
64 void link(
BOct* parent, T* child);
67 T* getChildPtr(
BOct* parent);
76 long buildTree(
BOct* oct, std::vector<size_t>& hashes, std::vector<BaseVecT>& centroids,
const BoundingBox<BaseVecT>& bbox);
79 void intersect(
ChunkLeaf* leaf,
const BoundingBox<BaseVecT>& bbox,
double planes[24], std::vector<BaseVecT >& indices, std::vector<size_t>& hashes);
81 void intersect(
BOct* oct,
const BoundingBox<BaseVecT>& bbox,
double planes[24], std::vector<BaseVecT >& indices, std::vector<size_t>& hashes);
84 void getHashes(
BOct* oct, std::vector<BaseVecT>& indices, std::vector<size_t>& hashes);
99 #include "lvr2/display/MeshOctree.tcc"
std::vector< BaseVector< float > > m_centroids
std::vector< size_t > m_hashes
BoundingBox< BaseVecT > m_bbox
A dynamic bounding box class.
void setLOD(unsigned char lod)