Skip to main content

ManagedOctree

Type Alias ManagedOctree 

Source
pub type ManagedOctree<D, S> = Octree<ManagedOctreeData<D, S>>;

Aliased Type§

pub struct ManagedOctree<D, S> { /* private fields */ }

Implementations§

Source§

impl<D, S, T> ManagedOctree<D, S>
where D: Default + Empty + Len + Clear + IntoIterator<Item = T> + OctreeCollection<T>, T: CentredItem<S>, S: Default + Copy + One + PartialOrd + Add<S, Output = S> + Sub<S, Output = S> + Div<S, Output = S>,

Source

pub fn new_managed(centre: (S, S, S), half_length: S) -> Self

Source

pub fn with_max_size(self, max_size: usize) -> Self

Set max_size

Source

pub fn with_drop_below_size(self, drop_below_size: usize) -> Self

Set drop_below_size

Panics when set to 0

Source

pub fn add(&mut self, item: T)

Adds data to the node without flushing/rebalancing the tree.

Source

pub fn clear_data(&mut self)

Clears data from the node (not the whole tree)

Source

pub fn rebalance(&mut self)