VoxyPy
A data structure for Voxel operations.
- Uses NumPy for speed and efficiency.
- Uses a modified version of numpy-vox-io for IO operations.
Quickstart
from voxypy.models import Entity, Voxel
dense = np.zeros((10, 10, 10), dtype=int)
entity = Entity(data=dense)
entity.set(x=1, y=2, z=3, 42)
voxel = entity.get(1, 2, 3) # Voxel object with value 42
voxel.add(1) # Voxel object with value 43
new_voxel = Voxel(255)
new_voxel.add(1) # Returns Voxel object with value 1
entity.set(5, 5, 5, new_voxel)
entity.set(5, 5, 5, 69)
entity = Entity().from_file('old_entity.vox')
# optional
entity.set_palette_from_file('palette.png')
entity.save('new_entity.vox')
Full documentation can be found here
Helpful Links
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
voxypy-0.2.3.tar.gz
(10.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file voxypy-0.2.3.tar.gz.
File metadata
- Download URL: voxypy-0.2.3.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f2648241e460a524ea2b228fb4b7a9eae41a241629227790258e0a97c7bd55f
|
|
| MD5 |
0c8971e513b88b3ece797038e46d5769
|
|
| BLAKE2b-256 |
839baff9e2ffb3b05c56a63bab496d0c0ab88c338d03d94e903ac4136487a269
|
File details
Details for the file voxypy-0.2.3-py3-none-any.whl.
File metadata
- Download URL: voxypy-0.2.3-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1cac999f1dc2091305d60c27915f57c75a43c0b3405d7056306616330508ac5
|
|
| MD5 |
d4c3f834960af1ffffa267f84a2b916b
|
|
| BLAKE2b-256 |
521f228a441d2ea6e5348eeb0e8076a55a017d75fe8007be411097f9bb91f652
|