3D structures (volume particles)

Particles distributed throughout a layer’s volume. Use fill3DRandom() to fill a layer with randomly positioned particles:

layer = ba.Layer(material, thickness)
layer.fill3DRandom(density, particle)

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