[−][src]Struct svo::octree::Octree
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]
signed_distance_field: &F,
fill: T,
lod: u8,
mut node: NodeRefMut<'_, T>
) where
F: Fn(Vec3) -> f32,
pub fn from_signed_distance_field<F>(field: F, fill: T, lod: u8) -> Octree<T> where
F: Fn(Vec3) -> f32,
[src]
F: Fn(Vec3) -> f32,
Auto Trait Implementations
impl<T> RefUnwindSafe for Octree<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Octree<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Octree<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Octree<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Octree<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,