4

I have a lattice of large spheres:

vecs = Entity["Lattice", "BodyCenteredCubic"]["MinimalVectors"];
bcc = Append[vecs, {0, 0, 0}];
Graphics3D[{Opacity[.6], Ball[#, Sqrt[3]/2] & /@ bcc}]

lattice of spheres

I would like to fill in the transparent space between the spheres with some semi-transparent color instead of it simply being empty space between the spheres. Is this possible?

Zonova
  • 341
  • 1
  • 8

1 Answers1

5

You may choose a transparent background color with a low opacity like:

vecs = Entity["Lattice", "BodyCenteredCubic"]["MinimalVectors"];
bcc = Append[vecs, {0, 0, 0}];
Graphics3D[{{Green, Opacity[0.1], Cube[3.8]}, {Opacity[.6], 
   Ball[#, Sqrt[3]/2] & /@ bcc}}, Boxed -> False]

enter image description here

Daniel Huber
  • 51,463
  • 1
  • 23
  • 57