Struct rust_3d::oc_tree::OcTree
[−]
[src]
pub struct OcTree<P> where
P: IsEditable3D + IsBuildable3D, { pub root: Option<OcNode<P>>, pub min: P, pub max: P, }
OcTree
Fields
root: Option<OcNode<P>>
min: P
max: P
Trait Implementations
impl<P: Default> Default for OcTree<P> where
P: IsEditable3D + IsBuildable3D,
[src]
P: IsEditable3D + IsBuildable3D,
impl<P> IsTree3D<P> for OcTree<P> where
P: IsEditable3D + IsBuildableND + IsBuildable3D + Clone + Default,
[src]
P: IsEditable3D + IsBuildableND + IsBuildable3D + Clone + Default,
fn size(&self) -> usize
Should return the number of elements within the tree
fn to_pointcloud(&self) -> PointCloud3D<P>
Should return all positions within the tree as point cloud
fn build(&mut self, pc: PointCloud3D<P>) -> bool
Should create a new tree from a given point cloud
impl<P> IsOcTree<P> for OcTree<P> where
P: IsEditable3D + IsBuildableND + IsBuildable3D + Clone + Default,
[src]
P: IsEditable3D + IsBuildableND + IsBuildable3D + Clone + Default,
fn collect(&self, maxdepth: i8) -> PointCloud3D<P>
Should return all positions up the given depth