




Description
Deterministic building and district kernel. generateBuilding makes rectangular multi-storey buildings from a two-sided corridor grammar with typed room programmes, walls, openings, stairs with slab cut-outs, and gable, hip or low-slope roofs with gutters and outlets. It validates supports and interfaces, solves room/corridor/stair navigation with keys and locked doors, lays out 1,000 plot addresses on a street graph, and exports Three.js meshes and an Unreal manifest.
The v2 layer adds a persistent district/parcel/building world; the v3 layer adds typed bearing mates and qualification reports. Units are metres, right-handed, Z up.
Where the triangles are
Materials
- UnnamedMeshStandard · metal 0.06 · rough 0.81
- UnnamedMeshStandard · metal 0.06 · rough 0.81
- UnnamedMeshStandard · metal 0.06 · rough 0.81
- UnnamedMeshStandard · metal 0.1 · rough 0.13
- UnnamedMeshStandard · metal 0.55 · rough 0.34
- UnnamedMeshStandard · metal 0.06 · rough 0.81
- UnnamedMeshStandard · metal 0 · rough 0.78
Specification
| Category | Buildings / Roofs, framing and building generators |
|---|---|
| Kind | Procedural building kernel |
| Collection | Generator systems |
| Repository | BUILDINGS |
| Version kept | v1.0.0 core with v2 and v3 layers, 2026-11-10 |
| Confidence | medium |
| Runtime | threejs |
| Bounding box | 18.9 × 9.66 × 15.0 m |
| Draw calls | 9 |
| Code | APEX_Construction_Intelligence/GraphKit_v1/src/core.mjs + 8 files |
| Built and measured | 2026-11-24, 0.2 s build, three.js r187 |
Effects
Open questions
- GraphKit v4 is not on main. It is proposed in PR #16 (feature/graphkit-v4-constraint-mission-20261119, 32c7d7e7) and, with correctness repairs and content-hash receipts for v3, in PR #17 (review/buildings-source-consolidation-20261119, 8ba8b5fa); both are open and unmerged as of 2026-11-25. v4 is a gameplay-graph overlay (locks and keys on existing doors) and adds no geometry, so the building shown here is unchanged. Should PR #17 be merged and v4 join the kit?
More roofs, framing and building generators See all 14
Courtyard hip & valleyRoof form
East–west gableRoof form
Equal-pitch perimeter hipRoof form
Lower cross-gableRoof form
North–south gableRoof form
Topology workbench houseParametric framed house generator
24 × 16 ft gable shedStructures
2x8 stud wallStructures
36 × 48 ft gable roofStructures
60 ft Pratt roof trussStructures
APEX Construction Intelligence city generatorProcedural city generator
APEX Roof StudioProcedural building and roof design studio