Basic 3D voxel grid in Mayavi
问题 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 The only example that I can find that I think is relatively relevant is this MRI example. I can use the following code to get a somewhat workable example: 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