@elmarquez/spatialhash

0.1.6 • Public • Published

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.

Package Sidebar

Install

npm i @elmarquez/spatialhash

Weekly Downloads

1

Version

0.1.6

License

MIT

Unpacked Size

1.37 MB

Total Files

15

Last publish

Collaborators

  • elmarquez