0.1.6 • Published 3 years ago

@elmarquez/spatialhash v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.