Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question for possibility to use clustering on x, y, z coordinates #157

Open
sot-tsa opened this issue Jun 26, 2020 · 2 comments
Open

Question for possibility to use clustering on x, y, z coordinates #157

sot-tsa opened this issue Jun 26, 2020 · 2 comments
Labels

Comments

@sot-tsa
Copy link

sot-tsa commented Jun 26, 2020

We are using CesiumJS (https://cesium.com/cesiumjs) for 3D visualization and we wonder whether it might be possible to use supercluster for clustering of points in 3D space (x, y, z coordinates or lat, long, elevation). Would it be possible to modify supercluster to support this? Please advice.

@mourner
Copy link
Member

mourner commented Jun 26, 2020

Honestly I don't know. It might get difficult, but you could try by keeping track of the third dimension and adding additional filtering based on 3D distance after the within call in _cluster.

@addy
Copy link

addy commented May 10, 2022

I think this is kind of similar to #117

I know k-d trees can operate in 3 dimensions, but this would require fundamental changes to this library, as it only operates in the 2d space. There are also octrees, similar to quadtrees, except they have 2^3 children (allowing for the 3rd dimension).

I'm also interested in a 3d clustering library, specifically for additional segregation within some arbitrary categories. I think that functionality would best live in another library though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants