3D structures (volume particles)

Particles distributed throughout a layer’s volume. Use Dilute3D to describe a random volume distribution and fill3D to add it to a layer:

structure = ba.Dilute3D(volume_density, particle)

layer = ba.Layer(material, thickness)
layer.fill3D(structure)

The density is specified as volume number density (particles per nm^3).