Skip to content

Latest commit

 

History

History
64 lines (37 loc) · 1.53 KB

README.md

File metadata and controls

64 lines (37 loc) · 1.53 KB

Spatial Hash

Fast spatial indexing and search for three.js.

Internally, the library stores data in a non-THREE format to make it easier to execute functions on workers. As a result, you will need to transform positional information back into THREE objects when pulling data from the index.

Add spatialhash as a dependency to your project:

npm install -S @elmarquez/spatialhash

Dependencies

Install all development dependencies:

npm install

Building a Distribution

Build the library:

npm run build

Test the distribution:

npm run test

Discussion

Research papers on spatial hashes, comparison to other data structures:

Spatial hash implementations:

To Do

  • Reimplement in TypeScript.

License

See the LICENSE file.