public
Created

volume rendering with mathematica

  • Download Gist
volrender
1 2 3 4 5 6
dims = Dimensions@data;
coords = Table[{x, y, z}, {x, 1, dims[[1]]}, {y, 1, dims[[2]]}, {z, 1,
dims[[3]]}];
cubes = {Hue @@ #1, EdgeForm[], Cuboid@#2} &
output = MapThread[cubes, {data, coords}, 3];
Graphics3D@output

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.