I'm working on a particle system that exists within a 10x10x10 cube. I poll the particle information as it passes through the space, and have three sets of 10 on/off signals for the x, y and z axis.

I want to visualise this information by lighting up a cube when the particle passes through its space, but can't grasp how to do this with abstractions. Any other way would require me to manually edit 1000 individual cubes, which I am not prepared to do.

Any help would be appreciated.