3D structures (volume particles)

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

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

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