mirror of
https://github.com/andreytkachenko/kdtree-rust.git
synced 2024-11-21 17:06:24 +04:00
Merge branch 'develop' of https://github.com/fulara/kdtree-rust into develop
This commit is contained in:
commit
27be03f264
@ -28,7 +28,7 @@ impl KdtreePointTrait for Point3WithId {
|
||||
}
|
||||
```
|
||||
Where id is just a example of the way in which I carry the data.
|
||||
With that trait implemented you are good to go to use the tree. Keep in mind that the kdtree is not a self balancing tree, so it should not support continous add. right now the tree just handles the build up from Vec. Basic usage can be found in the integration test, fragment copied below:
|
||||
With that trait implemented you are good to go to use the tree. Keep in mind that the kdtree is not a self balancing tree, It does support adding the nodes with method 'insert_node' and there is indeed a code to rebuild the tree if depths grows substantially. Basic usage can be found in the integration test, fragment copied below:
|
||||
```
|
||||
let tree = kdtree::kdtree::Kdtree::new(&mut points.clone());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user