pub trait QBVHDataGenerator<T> {
    fn size_hint(&self) -> usize;
    fn for_each(&mut self, f: impl FnMut(T, AABB));
}
Expand description

Trait used for generating the content of the leaves of the QBVH acceleration structure.

Required Methods

Gives an idea of the number of elements this generator contains.

This is primarily used for pre-allocating some arrays for better performances.

Iterate through all the elements of this generator.

Implementors