102 inline uint32_t _pow2roundup(uint32_t x)
114 uint32_t _volumeSize;
115 uint32_t _octreeSize;
The VectorOctreeNode class implement a spherical node of the Octree acceleration structure used by th...
The VectorOctree class implements the VectorOctree acceleration structure used by the FieldsRenderer ...
VectorOctree(const OctreeVectors &vectors, double voxelSize, const Vector3d &minAABB, const Vector3d &maxAABB)
Construct a new VectorOctree object.
const core::Vector3ui & getVolumeDimensions() const
Get the volume dimensions defined by the scene and the voxel sizes.
const uint32_ts & getFlatIndices() const
Get a flattened representation of the VectorOctree indices.
uint32_t getVolumeSize() const
Get the size of the volume.
~VectorOctree()
Destroy the VectorOctree object.
const floats & getFlatData() const
Get a flattened representation of the VectorOctree data (node values)
uint32_t getOctreeDepth() const
Get the depth of the VectorOctree.
uint32_t getOctreeSize() const
Get the size of the VectorOctree.
glm::vec< 3, uint32_t > Vector3ui
glm::vec< 3, double > Vector3d
std::vector< OctreeVector > OctreeVectors