Trait rust_3d::traits::IsTree3D
[−]
[src]
pub trait IsTree3D<P> where
P: Is3D, { fn size(&self) -> usize; fn to_pointcloud(&self) -> PointCloud3D<P>; fn build(&mut self, pc: PointCloud3D<P>) -> Result<()>; }
IsTree3D is a trait used for types which are any type of tree within 3D space
Required Methods
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>) -> Result<()>
Should create a new tree from a given point cloud
Implementors
impl<P> IsTree3D<P> for KdTree<P> where
P: Is3D + Clone,impl<P> IsTree3D<P> for OcTree<P> where
P: IsEditable3D + IsBuildableND + IsBuildable3D + Clone + Default,