From bb50cb0c490ca8d0a511ba41734318260ceec8c8 Mon Sep 17 00:00:00 2001 From: Bruno Postle Date: Tue, 16 Jun 2026 07:57:50 +0100 Subject: [PATCH] Added an easier version of programme-house --- examples/programme-house2/init.dom | 25 ++++++ examples/programme-house2/patterns.config | 99 +++++++++++++++++++++++ 2 files changed, 124 insertions(+) create mode 100644 examples/programme-house2/init.dom create mode 100644 examples/programme-house2/patterns.config diff --git a/examples/programme-house2/init.dom b/examples/programme-house2/init.dom new file mode 100644 index 0000000..e732b02 --- /dev/null +++ b/examples/programme-house2/init.dom @@ -0,0 +1,25 @@ +--- +node: + - + - 1.67100188077385 + - 11.9169190395339 + - + - 8.72124918939699 + - 13.7119442286569 + - + - 6.79637028658874 + - 21.3797854212389 + - + - -0.42152047183069 + - 19.9368564494913 +perimeter: + a: private + b: ~ + c: ~ + d: ~ +type: O +rotation: 0 +height: 3 +elevation: 0.0 +wall_inner: 0.08 +wall_outer: 0.25 diff --git a/examples/programme-house2/patterns.config b/examples/programme-house2/patterns.config new file mode 100644 index 0000000..1bafdb1 --- /dev/null +++ b/examples/programme-house2/patterns.config @@ -0,0 +1,99 @@ +--- +# Example patterns.config for programme-driven building evolution +# +# programme-house2: fixes for geometric feasibility on this plot (59 m²/floor) +# +# Fix 1: l1 level constraint removed — upper-floor LDK is achievable on a +# tight urban plot; the level: 0 requirement caused 21/~100 corpus fails. +# Fix 2: l1 size reduced from [35.0, 8.0] (min ~27 m²) to [25.0, 6.0] +# (min ~19 m²) — 25 m² is realistic for a 2-bed house on this plot +# and fits within a half-floor cell without competing with circulation. + +# Building programme: 2-bedroom house with ensuite +spaces: + b1: + name: Master Bedroom + size: + - 16.0 + - 4.0 + width: + - 4.0 + - 1.0 + proportion: + - 1.5 + - 0.5 + adjacency: + - c + t1: + name: Ensuite Bathroom + size: + - 5.0 + - 1.5 + width: + - 2.5 + - 0.5 + adjacency: + - b1 + b2: + name: Second Bedroom + size: + - 12.0 + - 3.0 + width: + - 3.5 + - 0.8 + adjacency: + - c + t2: + name: Guest Bathroom + size: + - 4.0 + - 1.5 + adjacency: + - c + l1: + name: Living/Dining/Kitchen + size: + - 25.0 + - 6.0 + width: + - 4.5 + - 1.0 + proportion: + - 2.0 + - 0.8 + adjacency: + - c + t3: + name: Ground Floor WC + size: + - 3.0 + - 1.0 + adjacency: + - c + level: 0 + +# Building constraints +storey_minimum: 2 +storey_limit: 5 +force_roof_garden: 0 + +# Circulation ratio (penalise excessive corridors) +ratio_circulation: + - 0.00 + - 0.15 + +# Outside space ratio +ratio_outside: + - 0.30 + - 0.15 + +# Staircase requirements +staircase_min: 1 +staircase_max: 1 + +# Other standard parameters can be included +value_inside: 300.0 +value_circulation: 50.0 +value_outside: 100.0 +value_supported: 300.0