BIM Intent Compiler¶
Construction = BOM + (x, y, z). One formula that unifies geometry, procurement, scheduling, compliance, and cost — the way E=mc² unified mass and energy. Five domains that the industry treats as separate tools, separate vendors, separate budgets — unified in a formula an inch long.
It reads a BOM and produces verified 3D coordinates — the same way an ERP system explodes a manufacturing BOM into work orders. The output can then be edited live in Bonsai (Blender BIM). Domain-agnostic — buildings, bridges, ships, tunnels. Nothing invented. No AI inside. Pure arithmetic. Deterministic.
together long ago — but I couldn't wait."
Redhuan D. Oon · ADempiere 2006 · iDempiere 2010 · BIM Compiler 2025
Every existing tool starts with geometry and extracts quantities downstream — draw first, count second. This compiler inverts the direction: the Bill of Materials is the source of truth, and geometry is the compiled output. Procurement doesn't follow design. Design follows procurement.
| Draw first, count second | Count first, draw second | |
|---|---|---|
| Source of truth | 3D model (Revit, ArchiCAD) | Bill of Materials |
| Quantities | Extracted after design | Inherent — the BOM IS the quantity |
| Change a wall | Redraw → re-extract QTO → re-estimate | Change one BOM line → recompile |
| Compliance | Separate checker (Solibri) | Same rule engine (AD_Val_Rule) |
| Cost | Separate estimator | Same BOM × price list |
| Schedule | Separate tool (Primavera) | BOM tree topological sort |
| Proof | Visual inspection | 6 mathematical gates — deterministic |
Built on iDempiere ERP conventions, SQLite, and the Blender/Bonsai open-source 3D viewport — upgraded with the FederatedModel Spatial Database and PDF Terrain survey-to-3D. From Kuala Lumpur, Malaysia — where BIM is mandated for all projects >= RM10M from July 2025. It is the Creator, Redhuan D. Oon's gift to the world.
-
35 Buildings Compiled
34 extracted from real IFC files + 1 generative. 19 pass all 6 mathematical gates. 16 in progress — geometry coverage and verb gaps tracked in TestArchitecture. Largest: 48,428 elements (airport terminal).
-
76 Verbs, 2,475 Products
BIM COBOL: TILE surfaces, ROUTE pipes, FRAME structures, CLUSTER repetitions. The compiler speaks construction.
-
6 Gates + Standards Compliance
Count, Volume, Digest, Tamper, Provenance, Isolation — 6 gates prove geometry. Jurisdiction rules prove code compliance — MY UBBL, US IBC, EU Eurocode.
-
ERP-Native + Reports
C_Order, C_OrderLine, M_Product, M_BOM — iDempiere patterns. Same compiled output produces BOM schedules, compliance certificates, cost reports.
How It Works¶
IFC file → extract → classify.yaml → IFCtoBOM → BOM.db → compile → output.db → gates
(once) (human intent) (once) (recipe) (repeat) (elements) (proof)
A product catalog (M_Product) becomes building elements. A Bill of Materials (M_BOM) becomes assembly recipes. A work order (C_Order) becomes a construction project. The same ERP tables that run a factory floor now compile a building.
The Rosetta Stone Strategy¶
AI cannot see spatial geometry — been LLM based, it has no native understanding of where a wall ends, how a slab sits, or whether two elements collide. The Rosetta Stone strategy sidesteps AI entirely: real buildings become the ground truth, and every compiled output is verified against that truth with pure arithmetic.
Real IFC buildings are decomposed into reference databases. The compiler reads a BOM describing the same building and produces output. If every compiled element lands at the same position as the reference — same coordinates, same dimensions, same 3D space — the BOM grammar is certified.
35 buildings compiled — from a single-storey house to a multi-storey airport terminal. 19 pass all 6 mathematical gates. Once a stone is certified, any new building composed from its proven grammar inherits the proof — no new reference needed.
We Got Eyes¶
The compiler can see. BIMEyes reduces every element's shape to three dimensionless ratios — planarity, elongation, squareness. A wall must be planar. A column must be elongated. A slab must be flat. These are mathematical facts, not heuristics.
Three verification tiers: per-element (each element is geometrically sane), pairwise (doors inside walls, furniture inside rooms), and aggregate (every room has walls, floor, ceiling, and a door). 28 proof classes across 90,310 elements. 97% pass both shape AND position proof. No AI. No tolerance tuning. Pure arithmetic. No trained models — thresholds are derived from geometric definitions (a wall IS planar by IFC class definition, not by statistical inference).
Design in Blender, Compile from BOM¶
The compiler powers a live GUI inside Blender via the Bonsai addon and the BIM Designer. Create a building from a single click, edit room dimensions with sliders, switch jurisdictions, save/recall design versions, and promote a design to a construction-ready work order.
The HTML web UI (port 9878) provides 10 tabs: spatial views, geometry inspection, validation, BOM tree, and colour-coded discipline breakdown. DocAction lifecycle buttons (Draft → Approve → Complete → Promote) drive the design through ERP-standard approval stages. Bidirectional sync: browser pushes commands to Bonsai, Bonsai renders the compiled output live.
408+ passing tests. What the user sees IS what the compiler produces, deterministically.
Quick Start¶
# Prerequisites: Java 17+, Maven 3.8+, SQLite3
git clone https://github.com/red1oon/BIMCompiler.git
cd bim-compiler
mvn compile -q # Compile all modules
./scripts/run_RosettaStones.sh classify_sh.yaml # Compile Sample House + verify gates
./scripts/run_tests.sh # Full test gate (408+ tests)
Full getting started guide · IFC onboarding runbook
Documentation Map¶
| I want to... | Start here |
|---|---|
| Understand the ERP world view | MANIFESTO — Read First |
| Read the master spec | BOM-Based Compilation |
| Navigate the code | Source Code Guide |
| Onboard a new IFC | IFC Onboarding Runbook |
| See the frontier | Project Order Blueprint |
| Compare to other approaches | Prior Art — Why Not Parametric? |
| Understand how it was built | Vibe Programming — AI + Domain Expertise |
| Explore the enterprise platform | FederatedModel — 4D through 8D |