Wayverb
wayverb::core::voxel_collection< n > Class Template Referencefinal

#include <voxel_collection.h>

Public Types

using aabb_type = detail::range_t< n >
 
using data_type = detail::voxel_data_t< n >
 

Public Member Functions

 voxel_collection (const ndim_tree< n > &tree)
 Construct directly from an existing tree.
 
aabb_type get_aabb () const
 
size_t get_side () const
 
const auto & get_voxel (indexing::index_t< n > i) const
 
auto & get_voxel (indexing::index_t< n > i)
 

Detailed Description

template<size_t n>
class wayverb::core::voxel_collection< n >

A box full of voxels, where each voxel keeps track of its own boundary and indices of triangles that overlap that boundary. Can be 'flattened' - converts the collection into a memory-efficient array representation, which can be passed to the GPU.


The documentation for this class was generated from the following file: