Morton3D (Homepage)
Efficient pythonic implementation of 3D Morton encoding and decoing.
Installation
pip install:
pip install Morton3D==1.0.1
install from source:
git clone https://github.com/Jianningli/Morton3D
cd Morton3D
python setup.py install
Usage
import Morton3D
m=Morton3D.zorder(9) # 9 is the bit length
mortonValue,mortonBinary=m.Morton(51,20,50) # encoding, (51,20,50) is the 3D integer coordinate.
coordinate=m.deMorton(192681,0) # decoding, given the mortonValue, return the 3D coordinate
# decoding, given the morton value in bit representation, return the 3D coordinate, 1 is the flag.
coordinate=m.deMorton('000000000101111000010101001',1)
Metadata
Release files for Morton3D 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Morton3D-1.0.1.tar.gz | 3.5 kB | Without provenance | Details for Morton3D-1.0.1.tar.gz |
Release files / Morton3D-1.0.1.tar.gz
| Download URL | Morton3D-1.0.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
851dce4be28dc49a53e2680663236f9fd213c04cbc58ba967355dff15da38a42
|
|
BLAKE2b-256 checksum How to use checksums |
fe02d3f582818af659d7566b1a59b58743d2a7efdefffc6b56042c24d4a2812b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.5.2
|
Security for Morton3D 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.