Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. iShell = Table[SphericalShell[{0, 0, 0}, {(i - 1) 0.1, i 0.1}], {i, 50}];
  2. regInt = Table[RegionIntersection[iShell[[i]],
  3. Cuboid[{-1, -4, -1}, {1, 4, 1}]], {i, Length[iShell]}];
  4.  
  5. Table[Region[regInt[[i]]], {i, 27, 29}]
  6.  
  7. intDisc = Table[BoundaryDiscretizeRegion[regInt[[i]],MaxCellMeasure -> .01], {i, 27, 29}]
  8.  
  9. pic = Table[Graphics3D[{intDisc[[i]], Opacity[0.5], iShell[[i + 26]],
  10. Cuboid[{-1, -4, -1}, {1, 4, 1}]}, Boxed -> False], {i, 2}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement