Skip to main content

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

Release files for voxypy 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voxypy 0.2.3
File Size Uploaded
voxypy-0.2.3.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for voxypy 0.2.3
File Interpreter ABI Platform
voxypy-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.0 kB

Release files / voxypy-0.2.3.tar.gz

Download URL voxypy-0.2.3.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6f2648241e460a524ea2b228fb4b7a9eae41a241629227790258e0a97c7bd55f
BLAKE2b-256 checksum
How to use checksums
839baff9e2ffb3b05c56a63bab496d0c0ab88c338d03d94e903ac4136487a269
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / voxypy-0.2.3-py3-none-any.whl

Download URL voxypy-0.2.3-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1cac999f1dc2091305d60c27915f57c75a43c0b3405d7056306616330508ac5
BLAKE2b-256 checksum
How to use checksums
521f228a441d2ea6e5348eeb0e8076a55a017d75fe8007be411097f9bb91f652
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page