Integer lattice column along the face's U axis.
The cell's own origin in face-local metres.
The zone's lattice period in metres, a fresh copy per call.
Cell pitch along U, in metres.
Cell pitch along V, in metres.
Integer lattice row along the face's V axis.
The author's own module program, run once per lattice cell.
This is the whole of what the engine does not decide. Square, running bond, herringbone, chevron, radial, and anything a production invents are all this one function written differently: the engine hands over a cell and takes back whatever modules the author puts in it. Nothing here is a preset, because a catalogue of bonds is content, and content is the customer's.
The function must be pure: the same cell must always produce the same modules, or the determinism the rest of the pipeline is built on stops at this boundary.
generateAutoMovieSurfacePatterncalls it rows outermost and columns innermost over the zone's region bounds widened by the zone'sreach, at mostAUTOMOVIE_MAX_PATTERN_CELLScells per zone. Each returned candidate is checked (non-blank id unique in its zone, finite centre, rotation and grain, positive size, every corner withinreachof the cell origin) and the run throws on the first one that fails.