OfxSpatialHash
A collection of 2D/3D spatial hashing algorithms. Useful for quick nearest neighbor calculations.
Install / Use
/learn @bakercp/OfxSpatialHashREADME
ofxSpatialHash
Description
A collection of 2D/3D spatial hashing algorithms. Useful for quick nearest neighbor calculations in 2-, 3-d and N-d.
Inspired by https://github.com/neilmendoza/ofxNearestNeighbour/ and others.
See class documentation and examples for more information.

Features
- Allows for an all-in-one approach to spatially indexing existing point clouds for rapid 2D/3D search.
- Supports easy use of
ofVec2f,ofVec3f,ofVec2f,glm::vec2,glm::vec3,glm::vec4. - Supports
Ndimensional hash usingstd::array<float, N>. Seeexample_kdtree_ndfor a 3d version.
Getting Started
To get started, generate the example project files using the openFrameworks Project Generator.
Documentation
API documentation can be found here.
Build Status
Compatibility
The stable branch of this repository is meant to be compatible with the openFrameworks stable branch, which corresponds to the latest official openFrameworks release.
The master branch of this repository is meant to be compatible with the openFrameworks master branch.
Some past openFrameworks releases are supported via tagged versions, but only stable and master branches are actively supported.
Versioning
This project uses Semantic Versioning, although strict adherence will only come into effect at version 1.0.0.
Licensing
See LICENSE.md.
Contributing
Pull Requests are always welcome, so if you make any improvements please feel free to float them back upstream :)
- Fork this repository.
- Create your feature branch (
git checkout -b my-new-feature). - Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin my-new-feature). - Create new Pull Request.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
