API reference
@voxolith/gen-building
@voxolith/gen-building: procedural voxel buildings.
A small shape grammar followed by detail passes, in this order:
- mass: plinth, hollow storeys with floor slabs, the roof shell, gables
- layout: where every window and the door go, decided before any texture so timber framing can frame them
- walls: brick bond, ashlar courses, plaster with spalling, or a timber frame; joints are recessed so masonry has relief
- trim: quoins, string courses, cornice, water table
- openings: windows with reveals, frames, glazing bars, sills, lintels, shutters and flower boxes; a panelled or boarded door with a transom, handle, hood, lamp and steps
- roof: courses of tile, slate or shingle with staggered joints, or thatch with ragged eaves and a ligger ridge; ridge cap, barge boards, rafter tails, gutters and downpipes
- chimneys: brick stacks with a corbelled cap and hollow pots
- weather: streaks under sills, rising damp, roof and plinth moss
Walls are addressed in face-local coordinates: u runs along the face, y
is height, and d is depth into the wall from its outer skin (d = 0), with
negative d standing proud of it. Everything random comes from the injected
rng or from hashes of positions, so the same seed rebuilds the same house.