Skip to main content
2 of 14
added 205 characters in body
kglr
  • 400.5k
  • 18
  • 488
  • 929

You can use Translate and Scale Sphere[] as follows:

radii = Range[5];

Graphics3D[Translate[Scale[Sphere[], #], {#^2, 0, 0}] & /@ radii]

enter image description here

or translate to leave gaps between spheres:

translations = 2 Accumulate[radii];

Graphics3D[MapThread[Translate[Scale[Sphere[], #], {#2, 0, 0}] &, {radii, translations}]]

enter image description here

kglr
  • 400.5k
  • 18
  • 488
  • 929