pub struct OctreeNode {
pub bounds_min: [f32; 3],
pub bounds_max: [f32; 3],
pub point_indices: Vec<usize>,
pub children: Option<Box<[OctreeNode; 8]>>,
}Expand description
A node in the octree (either internal or leaf).
Fields§
§bounds_min: [f32; 3]§bounds_max: [f32; 3]§point_indices: Vec<usize>Indices into Octree::points for points in this leaf node.
children: Option<Box<[OctreeNode; 8]>>Eight children if this is an internal node.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OctreeNode
impl RefUnwindSafe for OctreeNode
impl Send for OctreeNode
impl Sync for OctreeNode
impl Unpin for OctreeNode
impl UnsafeUnpin for OctreeNode
impl UnwindSafe for OctreeNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more