Guest User

Untitled

a guest
Oct 15th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. dims = Dimensions@data;
  2. coords = Table[{x, y, z}, {x, 1, dims[[1]]}, {y, 1, dims[[2]]}, {z, 1,
  3. dims[[3]]}];
  4. cubes = {Hue @@ #1, EdgeForm[], Cuboid@#2} &
  5. output = MapThread[cubes, {data, coords}, 3];
  6. Graphics3D@output
Add Comment
Please, Sign In to add comment