[][src]Struct svo::octree::Octree

pub struct Octree<T: Voxel> { /* fields omitted */ }

Implementations

impl<T: Voxel> Octree<T>[src]

pub fn new() -> Self[src]

pub fn root_mut(&mut self) -> NodeRefMut<'_, T>[src]

pub fn root(&self) -> NodeRef<'_, T>[src]

pub fn get(&self, mut x: u32, mut y: u32, mut z: u32, mut gridsize: u32) -> T[src]

pub fn set(&mut self, x: u32, y: u32, z: u32, gridsize: u32, item: T)[src]

pub fn total_data_size(&self) -> usize[src]

pub fn copy_into_slice(&self, slice: &mut [u8])[src]

impl<T: Voxel> Octree<T>[src]

pub fn signed_distance_field_recursive<F>(
    signed_distance_field: &F,
    fill: T,
    lod: u8,
    mut node: NodeRefMut<'_, T>
) where
    F: Fn(Vec3) -> f32
[src]

pub fn from_signed_distance_field<F>(field: F, fill: T, lod: u8) -> Octree<T> where
    F: Fn(Vec3) -> f32
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Octree<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Octree<T> where
    T: Send
[src]

impl<T> Sync for Octree<T> where
    T: Sync
[src]

impl<T> Unpin for Octree<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Octree<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.