Skip to content
New issue

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

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

Already on GitHub? # to your account

Morton Offsets #45

Open
IJzerbaard opened this issue May 13, 2020 · 5 comments
Open

Morton Offsets #45

IJzerbaard opened this issue May 13, 2020 · 5 comments

Comments

@IJzerbaard
Copy link

It is possible to quickly (that is, without going through a decode-modify-encode pipeline) compute neighbours of a Morton-encoded coordinate. The technique is mentioned on wikipedia.

That could be useful to add, though I realise the description of this library only mentions encoding and decoding.

@Forceflow
Copy link
Owner

I've been thinking about this, and as you say, it would take the library away from purely encoding/decoding.

Then again, it is useful.

Do a PR if you want to :)

@Forceflow
Copy link
Owner

Forceflow commented May 19, 2020

I think I might add this to a seperate header, morton_ops.h
A good thing for the todo list!

@tonyskjellum
Copy link

This is indeed very useful; did this get done later? :-) We have some 20+ year old code that uses incremental indexing extensively and it is very inexpensive even in scalar processing mode.

@Forceflow
Copy link
Owner

It's still on the todo list - feel free to write it and make a PR :p

@tonyskjellum
Copy link

We will start working on that.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants