Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. res = 100;
  2. coords = ToPackedArray@
  3. Table[{i - 0.5, j - 0.5, k - 0.5}, {i, Range@res}, {j,
  4. Range@res}, {k, Range@res}];
  5. dists = Map[N@Norm[# - res/2.] &, coords, {3}];
  6. opa = (1/(dists + 0.1))^1;
  7. opa /= Max@opa;
  8. ImageAdjust@Image3D[opa, ColorFunction -> "GrayOpacity"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement