Trait IsTree3D

Source
pub trait IsTree3D<P>
where P: Is3D,
{ // Required methods fn size(&self) -> usize; fn to_pointcloud(&self) -> PointCloud3D<P>; fn build(&mut self, pc: PointCloud3D<P>) -> Result<()>; }
Expand description

IsTree3D is a trait used for types which are any type of tree within 3D space

Required Methods§

Source

fn size(&self) -> usize

Should return the number of elements within the tree

Source

fn to_pointcloud(&self) -> PointCloud3D<P>

Should return all positions within the tree as point cloud

Source

fn build(&mut self, pc: PointCloud3D<P>) -> Result<()>

Should create a new tree from a given point cloud

Implementors§

Source§

impl<P> IsTree3D<P> for KdTree<P>
where P: Is3D + Clone,

Source§

impl<P> IsTree3D<P> for OcTree<P>