Data structures for Voxel operations.
Project description
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
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
voxypy-0.2.3-py3-none-any.whl
(9.3 kB
view hashes)