Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
volume rendering with mathematica
dims = Dimensions@data;
coords = Table[{x, y, z}, {x, 1, dims[[1]]}, {y, 1, dims[[2]]}, {z, 1,
cubes = {Hue @@ #1, EdgeForm[], Cuboid@#2} &
output = MapThread[cubes, {data, coords}, 3];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment