Ever wanted to draw simple 3-D voxel models from numpy
arrays?
Now you can do that with
voxelmap
!
Voxelmap is a Python library which streamlines matplotlib's
Axes3D.voxels
by assigning each integer in an array to a voxel.
pip install voxelmap # install for the first time
pip install --upgrade voxelmap # upgrade to newest version (recommended)
Due to the many dependencies for this package, it is recommended to run voxelmap using a virtualenv virtual environment. To do so, follow the below simple protocol to create the virtual environment, run it, and install the package there:
virtualenv venv
source venv/bin/activate
pip install voxelmap
python [your-voxelmap-script.py]
To exit the virtual environment, simply type deactivate
.
To access it at any other time again, enter with the above source venv...
command.
Click on the images below for their Python source code.
Check out the Colab notebook below, which makes a nice tutorial:
voxelmap on Github
voxelmap on the Python Package Index (PyPI)