-
Notifications
You must be signed in to change notification settings - Fork 50
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
A question about the z_order.py #120
Comments
Hey, I'm not the author of the code but I believe this function is correct. The variable |
Hi, Thanks for your answering! I am not very familiar with the z-ordering curve. My understanding is for coordinates (X,Y,Z) the encoded key value is Key = (..., x2, y2, z2, x1, y1, z1, x0, y0, z0) So I suppose it is 3 * i here, or do I have mistaken somewhere? |
No it doesn't work like that, it uses a binary representation. If you encode a point clouds (N, 3), the key is a sequence of N integers, each of them corresponding to the value of the interleaved bits. It leverages discretize 3D space and a specific ordering in order to assign a single integer to a 3D coordinate. |
Forgive my poor writting, I mean the key = (..., x2, y2, z2, x1, y1, z1, x0, y0, z0) is a binary representation, while |
Hey there, thanks for your great contribution. I am reading the code about serialization, and I found the code snipt here in z_order.py:
I am confused why you are using 2 * i here, and I suppose it might be 3 * i here. Thanks for your answering!
The text was updated successfully, but these errors were encountered: