uBricks
Fitting Rollout
How far joints flex and bricks stretch to fit a wall, whether courses fit its height and openings, the bond, and what fills a short segment.
Overview
The Fitting rollout decides how whole bricks fit a real wall. It is collapsed when you create the object; every setting in it lays the wall again.
Each course is laid as segments between wall ends, jambs and corners. uBricks fills each with whole bricks, trying up to three either side of the nominal count, and changes the head joints first, stretching bricks only when it must: stretch is weighted about 30 times as heavily as joint change. Up the wall, whole courses are fitted to the height, sills and heads. Openings are never pointed at: any part of the wall's outline the geometry doesn't cover is one, gables and notches included.
To keep joint widths even, lower Head joint in Joint adjust (from 0. to 0., say) and leave Length room for the slack. For even bed joints, lower Bed joint in Joint adjust and leave Height room instead. Leave gap in Short fill keeps joints in their band at the cost of a bare gap.
To lay a stack bond, set Bond offset to 0; any value above 0, such as the default 0., brings back running bond.
To brick around windows and doors, cut each opening out of the wall as a clean rectangular hole, leave wall between neighbouring openings, and keep Fit rows to height and Fit rows to openings on. For quoined reveals, model each reveal (the side of the window tunnel, or a strip of sheet running back from the jamb at right angles to the face, its front facing into the opening) sharing vertices with the face along the jamb, and add it to the Walls rollout if it is a separate object.
Interface

Joint Adjust
Head joint – How far the head joint may move either way from Head joint in the uBricks rollout before bricks are stretched.
Bed joint – The same for the bed joint, when courses are fitted.
Note
A closed ring, such as a column, that can't close within the limits keeps its bricks full length and widens its joints beyond Joint adjust › Head joint.
Stretch Limits (Min / Max)
Each row is a minimum and a maximum scale; 1. is no stretch.
Length – The shortest and longest a brick may get when a row is fitted: 0. and 1. allow 10% either way. At 1. and 1. bricks never stretch, so widen Head joint in Joint adjust for the slack.


Height – The same for brick height when courses are fitted, after the bed joint.
Depth – Not a fit: each brick gets a random depth scale between the two, keyed to the Seed; only the back moves. At the defaults, 1. and 1., every brick is Brick depth deep.
Fit Rows to Height
Fit rows to height – Fills the wall height with the nearest whole number of courses, flexing the bed joint within Joint adjust, then the brick height within Height. If that can't fit or the wall is lower than half a course, and always while it is off, courses run up from the bottom at the nominal pitch; a course is laid only where the wall backs it over its full height, so the top stays bare by up to one course.
Fit rows to openings – Finds rectangular openings and measures each once, so every course shares its jambs, sill and head, and links reveals, so face and reveal bricks quoin; a reveal at a window not found as a clean rectangle, such as stacked or merged windows, is still linked through the hole beside it. Only with Fit rows to height on as well do sills and heads become lines the courses land on, each band between them taking its own whole number of courses. If a band can't fit, uBricks drops other level edges first, and sill and head lines only when none is left, typically at an opening shorter than a course: the narrowest opening's go first, and the courses run past them. Off, every hole is bricked course by course.

Warning
Only rectangular holes touching at most one edge of the wall get exact jambs, sills and heads: a door may reach the bottom edge, but not the wall end too. Arches, round holes, gables, openings that touch each other (unless together they make a rectangle) and openings in a closed ring come out stepped.
Bond Offset
Bond offset – 0 gives stack bond: head joints in columns, no half cells at the ends and no closers at corners. Any value above 0 gives running bond, each course shifted half a cell against the one below. At a wall end or a jamb with no reveal, every other course gets a half cell, so the end tooths. The stagger never resets at a sill or head.


Note
Bond offset is a switch: the spinner runs from 0 to 1, but 0., 0. and 1. all give the same half-cell running bond. There are no named bonds, such as Flemish or English, and no header courses; headers appear only in half cells, with Rotate fulls as halves.
Short Fill
Short fill – How a segment that whole bricks can't fill within Joint adjust and the Length limits is completed. Bricks always stay within Length, and joints never go below zero:
- Half-brick + joint – Adds a half brick at an end if that helps, then widens or closes the joints to fill exactly. The default.
- Widen joint – Keeps the brick count and puts the leftover into the joints.
- Leave gap – Packs the bricks at the Length maximum, keeps the joints within Joint adjust, and leaves the rest as bare mortar.
uBricks prefers the least leftover, then joints nearest nominal, then the fewest half bricks.



Min piece – The smallest leftover, as a fraction of a half brick, that still gets a brick. A segment shorter than Min piece × half a brick × the Length minimum, or than 2% of Brick length, stays wide mortar rather than a sliver. Like Short fill, it applies only to segments that don't fit.