I have a model of cube with randomly distributed spheres included there.

  {Opacity[.3], Cuboid[White, {0, 0, 0}, {0.01, 0.01, 0.01}]}, 
  Table[{Black, Sphere[RandomReal[{.000175, 0.01 - .000175}, 3], 0.000175]}, {j, 1, 250}]}]

My problem is to extract models of each layer. Is it possible or not?

  • $\begingroup$ Your code does not evaluate without error as currently posted. Did you intend {Opacity[.3], White, Cuboid[{0, 0, 0}, {0.01, 0.01, 0.01}]}? $\endgroup$
    – m_goldberg
    Commented Sep 18, 2014 at 9:47
  • 4
    $\begingroup$ So with your model, you have the center positions and radii of all the spheres so you could get an analytic form for any 2D slice. Is that what you want, or are you looking for a more general way to get 2D slices of more complicated 3D objects? If so, I think your answer is here: mathematica.stackexchange.com/questions/32991/… $\endgroup$
    – Jason B.
    Commented Sep 18, 2014 at 10:03


Browse other questions tagged or ask your own question.