Optionalshape: TOptionalseeds: Bit.Inputs.Base.Point3[]Optionalweights: number[]Optionalsizes: number[]Optionalshrink: voronoiShrinkEnumOptionalscale: numberOptionalinset: numberOptionalskin: numberOptionalwindows: voronoiWindowsEnumOptionalwindowScale: numberOptionalwindowInset: numberOptionalwallWindows: booleanOptionaloutsideSeeds: voronoiOutsideSeedsEnumOptionalcoincidentSeeds: voronoiCoincidentSeedsEnumThe one solid the foam fills. In a solid that is not convex of planar faces, only cells wholly inside it get a void.
The points the cells grow from, one cell and its void a seed, each inside the solid.
OptionalweightsOne weight a seed, in squared model units, making power cells: a heavier seed's cell grows, and one far outweighed may have none. Left empty, all weigh the same.
OptionalsizesPer-seed values for the voids' scale or inset: scales from 0 to 1, solid up to 0.001, or insets
of at least the solid's tolerance.
OptionalshrinkWhether each void is its cell scaled about the cell's centroid, or its cell with every face moved
inward by inset.
OptionalscaleWith shrink scale, the factor each cell is scaled by for its void, from 0.001 to 0.999.
OptionalinsetWith shrink inset, how far each face of a cell moves inward for its void, in model units, so
two neighbouring voids are their two insets apart.
OptionalskinHow far every void keeps from the solid's outside, in model units. Left out, 0 for scaled voids and the inset for inset ones.
OptionalwindowsWhether the voids stay sealed, or open into each other through a window in each face two voids
share, scaled by windowScale or inset by windowInset.
OptionalwindowWith windows scale, the factor each shared face is scaled by about its centroid for its
window.
OptionalwindowWith windows inset, how far each edge of a shared face moves inward for its window, in model
units.
OptionalwallWith windows, whether the voids also open through the solid's own faces, in a box or a convex
solid of planar faces.
OptionaloutsideWhat to do with a seed outside the solid: refuse it, or drop it and report its cell as dropped.
OptionalcoincidentWhat to do with seeds that coincide, or with windows seeds closer than a hundred-thousandth of the solid's box diagonal: refuse them, or merge each into the first of them.
A solid and seeds for
patterns.voronoi.foamandpatterns.voronoi.foamWithReport, which make the solid into foam: one solid holding a void in each seed's Voronoi cell, sealed or joined through windows.