Log inGet started
World

Save Point

Branchmain
Branchesmain
Commit8937fc8d08

README.md

BuildingGen

One procedural graph that builds any modular building from ANY modularKit. No kit data lives here.

Use

Building.procGraph inputs: kit (modularKit identity), footprint ("x,z x,z ..." rectilinear polygon, metres), tiers ("stories[:inset[:kit]]; ..." e.g. "4;12:6:kits.ParkAvenueModern"), seed, windowDensity, signChance, propChance, storefront, cornice, roofProps. Place with a Generator (see scenes.BuildingShowcase).

Kit contract (in each kit's own kit.json, key building)

pitch, floor, ground, bayAnchor ("center"|"left"), cornerArm, cornerHeight, cornerFrame ("incoming"|"outgoing"), corniceArm, cornicePitch, roofPitch, propMargin, propSlot, missing_roles (notes), and roles: role -> list of entries. An entry is {piece = <.zblend or .bundle identity, kit-local name allowed>, offset = {x,y,z}} or {mesh = <mesh identity>, material = <material identity>, offset, scale, orient}. A kit with no building section still builds on a default grid, all roles as placeholders.

Role vocabulary (roles.module) — placeholder colours

window (blue), solid (grey), ground (orange), ground_sign (yellow), entry (red), line (purple), corner (green), cornice (magenta), cornice_corner (pink), roof (dark grey), prop_1 (cyan); kits may add prop_2... Slot frame: +X along the facade, +Y up, exterior +Z, pivot on the building line at the slot's bay anchor and floor line. Unfilled roles are registered in tools.kit as <Family>_BuildingRole_<role> and shown in BuildingShowcase row C.

Files

layout.module (build-time structure), roles.module (vocabulary + placeholders), nodes/building.nodebox (facade, column, tiles, place). Development issue reports are kept outside this package.