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 renders live in the BIM OOTB browser viewer — no install, no server, two DBs, one browser. 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).
-
77 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.
-
Clash Detection — In the Browser
12 discipline-pair rules. Clash matrix, fly-to visualization, live tolerance slider, in-viewer review workflow. 48K elements, zero server. Replaces Navisworks ($3,570/yr).
-
ERP-Native + Reports
C_Order, C_OrderLine, M_Product, M_BOM — iDempiere patterns. Same compiled output produces BOM schedules, compliance certificates, cost reports.
-
Enterprise Security — No Server Required
3-layer cryptographic verification: HMAC pipeline attestation, Ed25519 identity signing, SHA-256 transport integrity. Beats BIM360/Trimble on every attack vector. Free to view. Pay for authenticated collaboration.
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 — being 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.
Compile Once, Query Forever¶
The industry loads the model, then queries it. This compiler inverts that too: the RTree Query Engine queries the spatial index and loads only what you ask for. One million elements render as GPU wireframes in 13 seconds — zero mesh in RAM, instant orbit. Press MESH and the Stingy Loader delivers exact IFC geometry for the elements around your camera in under one second. Press SHRED to clean up. The model is never fully loaded. It is always live.
An earlier approach used Blender's Geometry Nodes to instance meshes via point clouds (S175–S184). At city scale the GN evaluation overhead made it unviable. The RTree GPU path resolved the speed problem by eliminating mesh loading from the default viewport entirely — wireframes from the database index, mesh on demand.
RTree architecture and benchmarks · 1M stress test
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 |
| Navigate 1M+ elements in real time | RTree Query Engine — Compile Once, Query Forever |
| Walk to any element indoors | Find & Navigate — Indoor Wayfinding |
Copyright (c) 2025-2026 Redhuan D. Oon. MIT Licensed.