#oct-tree #quad-tree #kdtree #r-tree #spatial-index #2d-3d

spart

A collection of space partitioning tree data structures for Rust

1 unstable release

0.1.3 Feb 28, 2025
0.1.2 Feb 27, 2025
0.1.1 Feb 8, 2025
0.1.0 Feb 7, 2025

#486 in Data structures

Download history 254/week @ 2025-02-06 14/week @ 2025-02-13 1/week @ 2025-02-20 303/week @ 2025-02-27

572 downloads per month

MIT/Apache

120KB
2.5K SLoC

Spart

tests lints code coverage codefactor crates.io docs.rs downloads msrv docs license

Spart (s[pace] par[titioning] t[rees] is a Rust library that provides implementations of various space partitioning tree data structures for efficient indexing and searching 2D and 3D point data.

Currently, the following trees are implemented:

Index Tree Type 2D 3D kNN Search Range Search
1 Quadtree
2 Octree
3 Kd-tree
4 R-tree
5 BSP-tree

Installation

cargo add spart

Spart requires Rust 1.83.0 or later.

Documentation

The documentation for the latest release can be found here.

Additionally, check out the tests directory for detailed examples for how to use the library.

Contributing

See CONTRIBUTING.md for details on how to make a contribution.

License

Spart is available under the terms of either of the following licenses:

Dependencies

~1.5MB
~28K SLoC