Basic 3D voxel grid in Mayavi
<p>I'm trying to visualize a 3D array through Mayavi in Python.  I simply want to create a structured 3D voxel grid in which I can show some pre-specified voxel-space-filling points.  I do not think that I want </p>

<p>The only example that I can find that I think is relatively relevant is <a href="http://docs.enthought.com/mayavi/mayavi/auto/example_mri.html#example-mri" rel="nofollow noreferrer">this MRI example</a>.  I can use the following code to get a somewhat workable example:</p>

<pre><code>import numpy as np
from mayavi import mlab

data = (100, 100, 100)
data = np.zeros(data)
data[0:50, 50:70, 0:50] = 1
data[0:50, 0:20, 0:50] = 1

src = mlab.pipeline.scalar_field(data)
outer = mlab.pipeline.iso_surface(src)

mlab.show()
</code></pre>

<p>This is able to generate the following images:
<a href="https://i.stack.imgur.com/Ru5pw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ru5pw.png" alt="enter image description here"></a>
<a href="https://i.stack.imgur.com/wBQDt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wBQDt.png" alt="enter image description here"></a>
As you can see, not all sides of the boxes are generated, even though those points have the same value as the sides of the boxes that are generated.</p>

<p>Is there a way to visualize every single point in the numpy array that has value equal to 1?  I am fine if there is no iso-surface visualization -- in fact, I would prefer some Minecraft-esque blocky voxel visualization.</p>